Add aliases for curl

Use the cursor position to not have a trailing space after expanding the
abbreviation, making it easier to type any following characters.

See https://zsh-abbr.olets.dev/usage.html#place-the-cursor and
https://github.com/olets/zsh-abbr/discussions/97
This commit is contained in:
Oliver Davies 2024-08-19 22:08:01 +01:00
parent 5dac3f312d
commit c712a1b254
2 changed files with 8 additions and 0 deletions

View file

@ -8,6 +8,10 @@
shellAliases = (import ./zsh/aliases.nix);
localVariables = {
ABBR_SET_EXPANSION_CURSOR = 1;
};
initExtra = ''
git() {
if [[ "''${1}" == "root" ]]; then

View file

@ -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%"