nixos/default: zsh aliases for color

This commit is contained in:
genofire 2021-10-15 19:41:03 +02:00
parent 0b56fd5af6
commit 6a27d9b52c
1 changed files with 14 additions and 7 deletions

View File

@ -62,12 +62,19 @@
# zsh
users.defaultUserShell = pkgs.zsh;
programs.zsh.enable = true;
programs.zsh.autosuggestions.enable = true;
programs.zsh.syntaxHighlighting.enable = true;
programs.zsh.interactiveShellInit = ''
programs.zsh = {
enable = true;
autosuggestions.enable = true;
syntaxHighlighting.enable = true;
interactiveShellInit = ''
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";
};
};
}