Rename zsh widgets to avoid confusion

This commit is contained in:
Eric Torres 2020-06-21 23:17:18 -07:00
parent 3bf21a54e6
commit 129ca17ccd
2 changed files with 9 additions and 9 deletions

View File

@ -1,15 +1,15 @@
# Fuzzy find a file and then edit it # Fuzzy find a file and then edit it
_fedit() { _run_fedit() {
fedit && zle reset-prompt fedit && zle reset-prompt
} }
_etcedit() { _run_etcedit() {
fedit --etc && zle reset-prompt fedit --etc && zle reset-prompt
} }
zle -N _fedit zle -N _run_fedit
bindkey -M viins '^o' _fedit bindkey -M viins '^o' _run_fedit
zle -N _etcedit zle -N _run_etcedit
bindkey -M viins '^e' _etcedit bindkey -M viins '^e' _run_etcedit

View File

@ -1,7 +1,7 @@
# Fuzzy-find a file and open it in less # Fuzzy-find a file and open it in less
fless() { _run_fless() {
/usr/bin/fless && zle reset-prompt /usr/bin/fless && zle reset-prompt
} }
zle -N fless zle -N _run_fless
bindkey -M viins '^n' fless bindkey -M viins '^n' _run_fless