diff options
Diffstat (limited to 'custom/zsh.nix')
| -rw-r--r-- | custom/zsh.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/custom/zsh.nix b/custom/zsh.nix new file mode 100644 index 00000000..05f43410 --- /dev/null +++ b/custom/zsh.nix | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | { config, pkgs, ... }: | ||
| 2 | let | ||
| 3 | antigen = pkgs.callPackage (import ./antigen.nix) {}; | ||
| 4 | in rec { | ||
| 5 | programs.zsh.enable = true; | ||
| 6 | programs.zsh.shellAliases = { | ||
| 7 | less = "less -R"; | ||
| 8 | ls = "ls --color=auto"; | ||
| 9 | l = "ls -lhAF"; | ||
| 10 | ll = "l --color=always L"; | ||
| 11 | ".." = "cd .."; | ||
| 12 | }; | ||
| 13 | programs.zsh.interactiveShellInit = '' | ||
| 14 | setopt clobber | ||
| 15 | setopt nobeep | ||
| 16 | |||
| 17 | alias -g L='|less' | ||
| 18 | alias -g S='&> /dev/null' | ||
| 19 | alias -g G='|grep --color=auto' | ||
| 20 | alias -g B='&> /dev/null &!' | ||
| 21 | |||
| 22 | cl() { cd; clear } | ||
| 23 | ''; | ||
| 24 | programs.zsh.promptInit = '' | ||
| 25 | bindkey -e | ||
| 26 | source ${antigen}/antigen.zsh | ||
| 27 | |||
| 28 | antigen use oh-my-zsh | ||
| 29 | antigen bundles <<EOBUNDLES | ||
| 30 | git | ||
| 31 | tmux | ||
| 32 | zsh-users/zsh-syntax-highlighting | ||
| 33 | systemd | ||
| 34 | EOBUNDLES | ||
| 35 | |||
| 36 | antigen theme jreese | ||
| 37 | |||
| 38 | antigen apply | ||
| 39 | ''; | ||
| 40 | } | ||
