Rename zsh widgets to avoid confusion
This commit is contained in:
parent
3bf21a54e6
commit
129ca17ccd
@ -1,15 +1,15 @@
|
||||
# Fuzzy find a file and then edit it
|
||||
|
||||
_fedit() {
|
||||
_run_fedit() {
|
||||
fedit && zle reset-prompt
|
||||
}
|
||||
|
||||
_etcedit() {
|
||||
_run_etcedit() {
|
||||
fedit --etc && zle reset-prompt
|
||||
}
|
||||
|
||||
zle -N _fedit
|
||||
bindkey -M viins '^o' _fedit
|
||||
zle -N _run_fedit
|
||||
bindkey -M viins '^o' _run_fedit
|
||||
|
||||
zle -N _etcedit
|
||||
bindkey -M viins '^e' _etcedit
|
||||
zle -N _run_etcedit
|
||||
bindkey -M viins '^e' _run_etcedit
|
||||
|
@ -1,7 +1,7 @@
|
||||
# Fuzzy-find a file and open it in less
|
||||
fless() {
|
||||
_run_fless() {
|
||||
/usr/bin/fless && zle reset-prompt
|
||||
}
|
||||
|
||||
zle -N fless
|
||||
bindkey -M viins '^n' fless
|
||||
zle -N _run_fless
|
||||
bindkey -M viins '^n' _run_fless
|
||||
|
Loading…
x
Reference in New Issue
Block a user