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