fix: use lib.mkMerge for initContent
This commit is contained in:
parent
f1a8c729d1
commit
c1dbd64b40
1 changed files with 23 additions and 21 deletions
40
home/zsh.nix
40
home/zsh.nix
|
|
@ -54,27 +54,29 @@
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Init content - uses lib.mkBefore to run before home-manager generated code
|
# Init content - uses lib.mkBefore to run before home-manager generated code
|
||||||
initContent = lib.mkBefore ''
|
initContent = lib.mkMerge [
|
||||||
export PATH="/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:$PATH"
|
(lib.mkBefore ''
|
||||||
''
|
export PATH="/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:$PATH"
|
||||||
+ ''
|
'')
|
||||||
# Show fastfetch on shell start
|
''
|
||||||
echo
|
# Show fastfetch on shell start
|
||||||
fastfetch
|
echo
|
||||||
echo
|
fastfetch
|
||||||
|
echo
|
||||||
|
|
||||||
# Load pure prompt
|
# Load pure prompt
|
||||||
autoload -U promptinit; promptinit
|
autoload -U promptinit; promptinit
|
||||||
prompt pure
|
prompt pure
|
||||||
|
|
||||||
# Right prompt - time in gray
|
# Right prompt - time in gray
|
||||||
RPROMPT='%F{240}%D{%H:%M:%S}%f'
|
RPROMPT='%F{240}%D{%H:%M:%S}%f'
|
||||||
|
|
||||||
# Pure prompt customization
|
# Pure prompt customization
|
||||||
zstyle ':prompt:pure:prompt:success' color green
|
zstyle ':prompt:pure:prompt:success' color green
|
||||||
zstyle ':prompt:pure:prompt:success' symbol ">"
|
zstyle ':prompt:pure:prompt:success' symbol ">"
|
||||||
zstyle ':prompt:pure:prompt:error' color red
|
zstyle ':prompt:pure:prompt:error' color red
|
||||||
zstyle ':prompt:pure:prompt:error' symbol ">"
|
zstyle ':prompt:pure:prompt:error' symbol ">"
|
||||||
'';
|
''
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue