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