2021-11-04 12:39:42 +01:00
|
|
|
with import <nixpkgs> {};
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
enable = true;
|
|
|
|
|
interactiveShellInit = ''
|
|
|
|
|
source ${pkgs.grml-zsh-config}/etc/zsh/zshrc
|
|
|
|
|
# Make user colour green in prompt instead of default blue
|
|
|
|
|
#zstyle ':prompt:grml:left:items:user' pre '%F{green}%B'
|
|
|
|
|
export QUOTING_STYLE=literal
|
|
|
|
|
'';
|
|
|
|
|
promptInit = ""; # otherwise it'll override the grml prompt
|
2021-11-06 00:07:40 +01:00
|
|
|
syntaxHighlighting = {
|
|
|
|
|
enable = true;
|
|
|
|
|
highlighters = [ "main" "pattern" "brackets" ];
|
|
|
|
|
};
|
2021-11-04 12:39:42 +01:00
|
|
|
autosuggestions = {
|
|
|
|
|
enable = true;
|
|
|
|
|
highlightStyle = "fg=cyan";
|
|
|
|
|
};
|
|
|
|
|
shellAliases = {
|
2021-11-08 21:22:11 +01:00
|
|
|
"lh" = "command ls -hAl --color=auto";
|
2021-11-06 00:07:40 +01:00
|
|
|
"s" = "systemctl";
|
2021-11-04 12:39:42 +01:00
|
|
|
"ip" = "ip -c";
|
2021-11-06 00:11:10 +01:00
|
|
|
"n" = "cd /etc/nixos";
|
2021-11-04 12:39:42 +01:00
|
|
|
"nt" = "nixos-rebuild test";
|
|
|
|
|
"ns" = "nixos-rebuild switch";
|
|
|
|
|
"nsu" = "nixos-rebuild switch --upgrade";
|
|
|
|
|
};
|
|
|
|
|
}
|