functions.zsh: add check to fzf-open
This commit is contained in:
parent
5770f77589
commit
7be15c66bc
@ -61,8 +61,10 @@ delete-branches() {
|
|||||||
fzf-open() {
|
fzf-open() {
|
||||||
local output
|
local output
|
||||||
output=$(fzf </dev/tty)
|
output=$(fzf </dev/tty)
|
||||||
vim --not-a-term ${output}
|
if [ $output != "" ]; then
|
||||||
zle reset-prompt
|
vim --not-a-term ${output}
|
||||||
|
fi
|
||||||
|
zle .reset-prompt
|
||||||
}
|
}
|
||||||
|
|
||||||
zle -N fzf-open
|
zle -N fzf-open
|
||||||
|
Loading…
Reference in New Issue
Block a user