Change to conditional zle reset-prompt

This commit is contained in:
Eric Torres 2019-03-09 10:40:50 -08:00
parent 6aa5024811
commit 366601d014
2 changed files with 3 additions and 6 deletions

View File

@ -1,13 +1,11 @@
# Fuzzy find a file and then edit it # Fuzzy find a file and then edit it
_fedit() { _fedit() {
/usr/bin/fedit /usr/bin/fedit && zle reset-prompt
zle reset-prompt
} }
_etcedit() { _etcedit() {
/usr/bin/fedit --etc /usr/bin/fedit --etc && zle reset-prompt
zle reset-prompt
} }
zle -N _fedit zle -N _fedit

View File

@ -1,7 +1,6 @@
# Fuzzy-find a file and open it in less # Fuzzy-find a file and open it in less
fless() { fless() {
/usr/bin/fless /usr/bin/fless && zle reset-prompt
zle reset-prompt
} }
zle -N fless zle -N fless