refactor(fzf): improve pathing

This commit is contained in:
Price Hiller 2022-08-02 00:39:33 -05:00
parent 0ebb8be399
commit bdbbac0d7d
2 changed files with 4 additions and 17 deletions

View File

@ -1,13 +0,0 @@
# Setup fzf
# ---------
if [[ ! "$PATH" == */Users/pricehiller/.local/share/fzf/bin* ]]; then
PATH="${PATH:+${PATH}:}/Users/pricehiller/.local/share/fzf/bin"
fi
# Auto-completion
# ---------------
[[ $- == *i* ]] && source "/Users/pricehiller/.local/share/fzf/shell/completion.bash" 2> /dev/null
# Key bindings
# ------------
source "/Users/pricehiller/.local/share/fzf/shell/key-bindings.bash"

View File

@ -1,13 +1,13 @@
# Setup fzf
# ---------
if [[ ! "$PATH" == */Users/pricehiller/.local/share/fzf/bin* ]]; then
PATH="${PATH:+${PATH}:}/Users/pricehiller/.local/share/fzf/bin"
if [[ ! "$PATH" == *"${HOME}/.local/share/fzf/bin"* ]]; then
PATH="${PATH:+${PATH}:}${HOME}/.local/share/fzf/bin"
fi
# Auto-completion
# ---------------
[[ $- == *i* ]] && source "/Users/pricehiller/.local/share/fzf/shell/completion.zsh" 2> /dev/null
[[ $- == *i* ]] && source "${HOME}/.local/share/fzf/shell/completion.zsh" 2> /dev/null
# Key bindings
# ------------
source "/Users/pricehiller/.local/share/fzf/shell/key-bindings.zsh"
source "${HOME}/.local/share/fzf/shell/key-bindings.zsh"