From 439c7b02c50eb9987dc143eceb84916d237e3e8d Mon Sep 17 00:00:00 2001 From: jiriks74 Date: Thu, 21 Nov 2024 23:05:13 +0100 Subject: [PATCH] fix(aliases): Set global aliases using shellGlobalAliases --- zsh.nix | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) 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";