21 lines
492 B
Plaintext
21 lines
492 B
Plaintext
# 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.bash" 2> /dev/null
|
|
|
|
# Key bindings
|
|
# ------------
|
|
source "/usr/local/opt/fzf/shell/key-bindings.bash"
|
|
|