Change to conditional zle reset-prompt
This commit is contained in:
parent
6aa5024811
commit
366601d014
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user