diff --git a/modules/home-manager/cli/zsh/abbreviations.nix b/modules/home-manager/cli/zsh/abbreviations.nix index 7bebecdf..6461ffda 100644 --- a/modules/home-manager/cli/zsh/abbreviations.nix +++ b/modules/home-manager/cli/zsh/abbreviations.nix @@ -108,19 +108,6 @@ rpub = "run publish"; rt = "run test"; - "-g A1" = "| awk '{print $1}'"; - "-g C" = "| xclip -sel clip"; - "-g Fj" = "| jq ."; - "-g Fy" = "| yq ."; - "-g G" = "| grep"; - "-g GH" = "| grep HTTP"; - "-g Gi" = "| grep -i"; - "-g H2" = "| head -n 20"; - "-g H" = "| head"; - "-g L" = "| less"; - "-g V" = "| nvim -"; - "-g X" = "| xargs -I1"; - nah = "git reset --hard; git clean -fd"; wip = "git commit -m wip"; diff --git a/modules/home-manager/cli/zsh/default.nix b/modules/home-manager/cli/zsh/default.nix index 7f77f5c3..dc110f74 100644 --- a/modules/home-manager/cli/zsh/default.nix +++ b/modules/home-manager/cli/zsh/default.nix @@ -10,6 +10,7 @@ enable = true; abbreviations = import ./abbreviations.nix; + globalAbbreviations = import ./global-abbreviations.nix; }; dotDir = ".config/zsh"; diff --git a/modules/home-manager/cli/zsh/global-abbreviations.nix b/modules/home-manager/cli/zsh/global-abbreviations.nix new file mode 100644 index 00000000..9faa7408 --- /dev/null +++ b/modules/home-manager/cli/zsh/global-abbreviations.nix @@ -0,0 +1,14 @@ +{ + A1 = "| awk '{print $1}'"; + C = "| xclip -sel clip"; + Fj = "| jq ."; + Fy = "| yq ."; + G = "| grep"; + GH = "| grep HTTP"; + Gi = "| grep -i"; + H2 = "| head -n 20"; + H = "| head"; + L = "| less"; + V = "| nvim -"; + X = "| xargs -I1"; +}