diff --git a/lib/shared/modules/zsh.nix b/lib/shared/modules/zsh.nix index 307a4d9..b0ce874 100644 --- a/lib/shared/modules/zsh.nix +++ b/lib/shared/modules/zsh.nix @@ -8,6 +8,10 @@ shellAliases = (import ./zsh/aliases.nix); + localVariables = { + ABBR_SET_EXPANSION_CURSOR = 1; + }; + initExtra = '' git() { if [[ "''${1}" == "root" ]]; then diff --git a/lib/shared/modules/zsh/abbreviations.zsh b/lib/shared/modules/zsh/abbreviations.zsh index 62e54ad..87d4f82 100644 --- a/lib/shared/modules/zsh/abbreviations.zsh +++ b/lib/shared/modules/zsh/abbreviations.zsh @@ -64,3 +64,7 @@ abbr -g H="| head" abbr -g L="| less" abbr -g V="| vim -" abbr -g X="| xargs -I1" + +abbr clh="curl localhost:%" +abbr clh3="curl localhost:3000%" +abbr clh8="curl localhost:8000%"