diff --git a/bashrc.d/fzf.bash b/bashrc.d/fzf.bash index 10c63bb..0e4f187 100644 --- a/bashrc.d/fzf.bash +++ b/bashrc.d/fzf.bash @@ -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"