Skip to content

Commit

Permalink
more portable fzf setup
Browse files Browse the repository at this point in the history
  • Loading branch information
joshpencheon committed Jul 15, 2016
1 parent 1e177a4 commit 34a2488
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .shrc/fzf.sh
@@ -1,20 +1,20 @@
# Setup fzf
# ---------
if [[ ! "$PATH" == */Users/Josh/.fzf/bin* ]]; then
export PATH="$PATH:/Users/Josh/.fzf/bin"
if [[ ! "$PATH" == *$HOME/.fzf/bin* ]]; then
export PATH="$PATH:$HOME/.fzf/bin"
fi

# Man path
# --------
if [[ ! "$MANPATH" == */Users/Josh/.fzf/man* && -d "/Users/Josh/.fzf/man" ]]; then
export MANPATH="$MANPATH:/Users/Josh/.fzf/man"
if [[ ! "$MANPATH" == *$HOME/.fzf/man* && -d "$HOME/.fzf/man" ]]; then
export MANPATH="$MANPATH:$HOME/.fzf/man"
fi

# Auto-completion
# ---------------
[[ $- == *i* ]] && source "/Users/Josh/.fzf/shell/completion.bash" 2> /dev/null
[[ $- == *i* ]] && source "$HOME/.fzf/shell/completion.bash" 2> /dev/null

# Key bindings
# ------------
source "/Users/Josh/.fzf/shell/key-bindings.bash"
source "$HOME/.fzf/shell/key-bindings.bash"

0 comments on commit 34a2488

Please sign in to comment.