2 changed files with 37 additions and 1 deletions
@ -0,0 +1,36 @@ |
|||||
|
{ config, pkgs, ... }: |
||||
|
|
||||
|
{ |
||||
|
programs.zsh = { |
||||
|
enable = true; |
||||
|
enableAutosuggestion = true; |
||||
|
|
||||
|
history= rec { |
||||
|
share = true; |
||||
|
extended = true; |
||||
|
save = 100000000; size = save; |
||||
|
}; |
||||
|
|
||||
|
shellAliases = { |
||||
|
"..." = "cd"; |
||||
|
sl = "exa"; |
||||
|
ls = "exa"; |
||||
|
l = "exa -l"; |
||||
|
la = "exa -la"; |
||||
|
|
||||
|
rs = "rsync -a --info=progress2 "; |
||||
|
}; |
||||
|
pathSetup = '' |
||||
|
export PATH="${prefixEnvPath "PATH" [ |
||||
|
"$HOME/.nix-profile/bin" |
||||
|
"/nix/var/nix/profiles/default/bin" |
||||
|
]}"; |
||||
|
export MANPATH="$HOME/.nix-profile/share/man:$(manpath 2>/dev/null)"; |
||||
|
typeset -U PATH path |
||||
|
''; |
||||
|
initExtra = '' |
||||
|
# Write out history line-by-line, rather than on shell session exit |
||||
|
setopt INC_APPEND_HISTORY |
||||
|
''; |
||||
|
}; |
||||
|
} |
||||
Loading…
Reference in new issue