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
|
2023-01-24 16:11:57 +01:00
|
|
|
new.nix() {
|
|
|
|
|
echo -e '{ ... }:\n{\n\n}\n# vim: set et ts=2 sw=2 ai:' >> "$1"
|
|
|
|
|
}
|
2021-11-04 12:39:42 +01:00
|
|
|
'';
|
|
|
|
|
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 = {
|
2023-09-11 14:48:01 +02:00
|
|
|
"l" = "eza -lag";
|
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";
|
2022-03-21 00:21:38 +01:00
|
|
|
"nt" = "(cd /tmp && nixos-rebuild test)";
|
2021-11-04 12:39:42 +01:00
|
|
|
"ns" = "nixos-rebuild switch";
|
|
|
|
|
"nsu" = "nixos-rebuild switch --upgrade";
|
2022-09-25 02:17:08 +02:00
|
|
|
"dfr" = "df -h | head -n +1; df -h | tail -n +2 | sort -nrk5";
|
|
|
|
|
"d" = ''du -ahx "$PWD" --exclude=/proc| sort -rh 2>/dev/null |head -40 | sort -rh 2>/dev/null'';
|
2021-11-04 12:39:42 +01:00
|
|
|
};
|
|
|
|
|
}
|
2021-11-17 10:20:02 +01:00
|
|
|
# vim: set et ts=2 sw=2 ai:
|