diff --git a/zsh.nix b/zsh.nix index b50a1ad..93c1b14 100644 --- a/zsh.nix +++ b/zsh.nix @@ -162,16 +162,6 @@ # Special aliases that may not work with Nix config # Command line head / tail shortcuts - alias H="| head"; - alias T="| tail"; - alias G="| grep"; - alias L="| less"; - alias M="| most"; - alias LL="2>&1 | less"; - alias CA="2>&1 | cat -A"; - alias NE="2> /dev/null"; - alias NUL="> /dev/null 2>&1"; - alias P="2>&1| pygmentize -l pytb"; if [[ "''${ZSH_PROFILE}" -eq 1 ]]; then zprof fi @@ -219,6 +209,19 @@ sshc = "ssh-connect"; }; + shellGlobalAliases = { + H="| head"; + T="| tail"; + G="| grep"; + L="| less"; + M="| most"; + LL="2>&1 | less"; + CA="2>&1 | cat -A"; + NE="2> /dev/null"; + NUL="> /dev/null 2>&1"; + P="2>&1| pygmentize -l pytb"; + }; + history = { # ignoreAllDups = true; path = "${config.xdg.cacheHome}/zhistory";