bash: remove absolute fzf path

This commit is contained in:
2020-03-20 09:40:19 +00:00
parent 0142dd0b25
commit b3981bfd2e

View File

@@ -1,7 +1,7 @@
# Setup fzf
# ---------
if [[ ! "$PATH" == */home/paul/.fzf/bin* ]]; then
export PATH="${PATH:+${PATH}:}/home/paul/.fzf/bin"
if [[ ! "$PATH" == *${HOME}/.fzf/bin* ]]; then
export PATH="${PATH:+${PATH}:}${HOME}/.fzf/bin"
fi
export FZF_DEFAULT_COMMAND='fd --type f --color=never'
@@ -9,8 +9,8 @@ export FZF_ALT_C_COMMAND='fd --type d . --color=never'
# Auto-completion
# ---------------
[[ $- == *i* ]] && source "/home/paul/.fzf/shell/completion.bash" 2> /dev/null
[[ $- == *i* ]] && source "${HOME}/.fzf/shell/completion.bash" 2> /dev/null
# Key bindings
# ------------
source "/home/paul/.fzf/shell/key-bindings.bash"
source "${HOME}/.fzf/shell/key-bindings.bash"