From deecdad16392990f80ad1d6316d591d7da13326d Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Sat, 1 May 2021 17:14:51 +0100 Subject: [PATCH] zsh: fix paths in fzf.zsh --- zshrc.d/fzf.zsh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zshrc.d/fzf.zsh b/zshrc.d/fzf.zsh index 2d7316a..7019b56 100644 --- a/zshrc.d/fzf.zsh +++ b/zshrc.d/fzf.zsh @@ -1,14 +1,14 @@ # Setup fzf # --------- -if [[ ! "$PATH" == */home/pw921828/.fzf/bin* ]]; then - export PATH="${PATH:+${PATH}:}/home/pw921828/.fzf/bin" +if [[ ! "$PATH" == *$HOME/.fzf/bin* ]]; then + export PATH="${PATH:+${PATH}:}$HOME/.fzf/bin" fi # Auto-completion # --------------- -[[ $- == *i* ]] && source "/home/pw921828/.fzf/shell/completion.zsh" 2> /dev/null +[[ $- == *i* ]] && source "$HOME/.fzf/shell/completion.zsh" 2> /dev/null # Key bindings # ------------ -source "/home/pw921828/.fzf/shell/key-bindings.zsh" +source "$HOME/.fzf/shell/key-bindings.zsh"