Detect fzf

This commit is contained in:
Loic Nageleisen 2020-12-21 18:37:13 +01:00
parent 46ef951beb
commit 4f6363d248
2 changed files with 6 additions and 0 deletions

View file

@ -1,6 +1,7 @@
# Key bindings
# ------------
if [[ $- == *i* ]]; then
if type fzf 1>/dev/null 2>/dev/null; then
# CTRL-T - Paste the selected file path(s) into the command line
__fsel() {
@ -76,3 +77,4 @@ zle -N fzf-history-widget
bindkey '^R' fzf-history-widget
fi
fi