Skip to content

Commit

Permalink
add fzf integration
Browse files Browse the repository at this point in the history
  • Loading branch information
seebi committed Oct 15, 2021
1 parent 89e2081 commit b528e8d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions fzf.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Setup fzf
# ---------
if [[ ! "$PATH" == */usr/local/opt/fzf/bin* ]]; then
export PATH="$PATH:/usr/local/opt/fzf/bin"
fi

# Man path
# --------
if [[ ! "$MANPATH" == */usr/local/opt/fzf/man* && -d "/usr/local/opt/fzf/man" ]]; then
export MANPATH="$MANPATH:/usr/local/opt/fzf/man"
fi

# Auto-completion
# ---------------
[[ $- == *i* ]] && source "/usr/local/opt/fzf/shell/completion.zsh" 2> /dev/null

# Key bindings
# ------------
source "/usr/local/opt/fzf/shell/key-bindings.zsh"

0 comments on commit b528e8d

Please sign in to comment.