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