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)
|
||||
if [ $output != "" ]; then
|
||||
vim --not-a-term ${output}
|
||||
zle reset-prompt
|
||||
fi
|
||||
zle .reset-prompt
|
||||
}
|
||||
|
||||
zle -N fzf-open
|
||||
|
Loading…
Reference in New Issue
Block a user