18 lines
245 B
Bash
Raw Normal View History

2019-03-01 16:49:17 -08:00
# Fuzzy find a file and then edit it
_fedit() {
/usr/bin/fedit
zle reset-prompt
}
_etcedit() {
/usr/bin/fedit --etc
zle reset-prompt
}
zle -N _fedit
bindkey -M viins '^o' _fedit
zle -N _etcedit
bindkey -M viins '^e' _etcedit