Fix global abbreviations
This commit is contained in:
parent
c55dcbc07a
commit
31472dea4f
3 changed files with 15 additions and 13 deletions
|
@ -108,19 +108,6 @@
|
||||||
rpub = "run publish";
|
rpub = "run publish";
|
||||||
rt = "run test";
|
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";
|
nah = "git reset --hard; git clean -fd";
|
||||||
wip = "git commit -m wip";
|
wip = "git commit -m wip";
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
abbreviations = import ./abbreviations.nix;
|
abbreviations = import ./abbreviations.nix;
|
||||||
|
globalAbbreviations = import ./global-abbreviations.nix;
|
||||||
};
|
};
|
||||||
|
|
||||||
dotDir = ".config/zsh";
|
dotDir = ".config/zsh";
|
||||||
|
|
14
modules/home-manager/cli/zsh/global-abbreviations.nix
Normal file
14
modules/home-manager/cli/zsh/global-abbreviations.nix
Normal file
|
@ -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";
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue