nixos/default: zsh aliases for color
This commit is contained in:
parent
0b56fd5af6
commit
6a27d9b52c
|
@ -62,12 +62,19 @@
|
||||||
|
|
||||||
# zsh
|
# zsh
|
||||||
users.defaultUserShell = pkgs.zsh;
|
users.defaultUserShell = pkgs.zsh;
|
||||||
programs.zsh.enable = true;
|
programs.zsh = {
|
||||||
programs.zsh.autosuggestions.enable = true;
|
enable = true;
|
||||||
programs.zsh.syntaxHighlighting.enable = true;
|
autosuggestions.enable = true;
|
||||||
programs.zsh.interactiveShellInit = ''
|
syntaxHighlighting.enable = true;
|
||||||
|
interactiveShellInit = ''
|
||||||
source ${pkgs.grml-zsh-config}/etc/zsh/zshrc
|
source ${pkgs.grml-zsh-config}/etc/zsh/zshrc
|
||||||
'';
|
'';
|
||||||
programs.zsh.promptInit = "";
|
promptInit = "";
|
||||||
|
shellAliases = {
|
||||||
|
ip = "ip --color";
|
||||||
|
watch = "watch -c";
|
||||||
|
grep = "grep --color=always --exclude-dir=.git";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue