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:
parent
5dac3f312d
commit
c712a1b254
|
@ -8,6 +8,10 @@
|
|||
|
||||
shellAliases = (import ./zsh/aliases.nix);
|
||||
|
||||
localVariables = {
|
||||
ABBR_SET_EXPANSION_CURSOR = 1;
|
||||
};
|
||||
|
||||
initExtra = ''
|
||||
git() {
|
||||
if [[ "''${1}" == "root" ]]; then
|
||||
|
|
|
@ -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%"
|
||||
|
|
Loading…
Reference in a new issue