home: zsh: fix prezto config
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{ ... }:
|
{ lib, ... }:
|
||||||
{
|
{
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -16,8 +16,11 @@
|
|||||||
prompt.theme = "pure";
|
prompt.theme = "pure";
|
||||||
autosuggestions.color = "fg=yellow,bold";
|
autosuggestions.color = "fg=yellow,bold";
|
||||||
utility.safeOps = false;
|
utility.safeOps = false;
|
||||||
|
extraConfig = lib.mkBefore ''
|
||||||
|
export GREP_COLORS="ms=01;31"
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
initExtra = ''
|
initContent = lib.mkAfter ''
|
||||||
unsetopt extendedGlob
|
unsetopt extendedGlob
|
||||||
[[ -f ~/.zsh_custom ]] && source ~/.zsh_custom
|
[[ -f ~/.zsh_custom ]] && source ~/.zsh_custom
|
||||||
'';
|
'';
|
||||||
|
@@ -3,9 +3,8 @@ let
|
|||||||
secretPath = "${config.home.homeDirectory}/.zshenv_secret";
|
secretPath = "${config.home.homeDirectory}/.zshenv_secret";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
programs.zsh.initExtra = lib.mkForce ''
|
programs.zsh.initContent = lib.mkAfter ''
|
||||||
. ${secretPath};
|
. ${secretPath};
|
||||||
unsetopt extendedGlob
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
age.secrets.zshenv_secret = {
|
age.secrets.zshenv_secret = {
|
||||||
|
Reference in New Issue
Block a user