From b3981bfd2eae97d109cbba740353cb775c125de3 Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Fri, 20 Mar 2020 09:40:19 +0000 Subject: [PATCH] bash: remove absolute fzf path --- bashrc.d/fzf.bash | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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"