diff options
Diffstat (limited to 'user-profiles/zsh/default.nix')
| -rw-r--r-- | user-profiles/zsh/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/user-profiles/zsh/default.nix b/user-profiles/zsh/default.nix index 973ff775..944d10ff 100644 --- a/user-profiles/zsh/default.nix +++ b/user-profiles/zsh/default.nix | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | home-manager.users.${userName} = let sysConfig = config; in { config, ... }: { | 4 | home-manager.users.${userName} = let sysConfig = config; in { config, ... }: { |
| 5 | config = { | 5 | config = { |
| 6 | programs.zsh = { | 6 | programs.zsh = { |
| 7 | dotDir = ".config/zsh"; | 7 | dotDir = "${config.xdg.configHome}/zsh"; |
| 8 | enable = true; | 8 | enable = true; |
| 9 | autocd = true; | 9 | autocd = true; |
| 10 | enableCompletion = true; | 10 | enableCompletion = true; |
| @@ -21,6 +21,8 @@ | |||
| 21 | abbreviations = { | 21 | abbreviations = { |
| 22 | re = "systemctl restart"; | 22 | re = "systemctl restart"; |
| 23 | ure = "systemctl --user restart"; | 23 | ure = "systemctl --user restart"; |
| 24 | st = "systemctl status"; | ||
| 25 | ust = "systemctl --user status"; | ||
| 24 | }; | 26 | }; |
| 25 | globalAbbreviations = { | 27 | globalAbbreviations = { |
| 26 | "L" = "| less"; | 28 | "L" = "| less"; |
| @@ -28,6 +30,7 @@ | |||
| 28 | "G" = "| grep"; | 30 | "G" = "| grep"; |
| 29 | "B" = "&> /dev/null &"; | 31 | "B" = "&> /dev/null &"; |
| 30 | "BB" = "&> /dev/null &!"; | 32 | "BB" = "&> /dev/null &!"; |
| 33 | "J" = lib.mkIf config.programs.jq.enable "| jq '.'"; | ||
| 31 | }; | 34 | }; |
| 32 | }; | 35 | }; |
| 33 | 36 | ||
