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
_fedit() {
/usr/bin/fedit
zle reset-prompt
/usr/bin/fedit && zle reset-prompt
}
_etcedit() {
/usr/bin/fedit --etc
zle reset-prompt
/usr/bin/fedit --etc && zle reset-prompt
}
zle -N _fedit

View File

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