diff --git a/.chezmoitemplates/fzf-zsh_linux.tmpl b/.chezmoitemplates/fzf-zsh_linux.tmpl index b93bed8..cca3148 100644 --- a/.chezmoitemplates/fzf-zsh_linux.tmpl +++ b/.chezmoitemplates/fzf-zsh_linux.tmpl @@ -1,13 +1,13 @@ # Setup fzf # --------- -if [[ ! "$PATH" == */home/{{ .chezmoi.username }}/.fzf/bin* ]]; then - PATH="${PATH:+${PATH}:}/home/{{ .chezmoi.username }}/.fzf/bin" +if [[ ! "$PATH" == *$HOME/.fzf/bin* ]]; then + PATH="${PATH:+${PATH}:}$HOME/.fzf/bin" fi # Auto-completion # --------------- -[[ $- == *i* ]] && source "/home/{{ .chezmoi.username }}/.fzf/shell/completion.zsh" 2> /dev/null +[[ $- == *i* ]] && source "$HOME/.fzf/shell/completion.zsh" 2> /dev/null # Key bindings # ------------ -source "/home/{{ .chezmoi.username }}/.fzf/shell/key-bindings.zsh" +source "$HOME/.fzf/shell/key-bindings.zsh"