From b99f426e7271014b652547df26f113fb9b80f3be Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Sun, 19 Jan 2025 18:10:39 +0100 Subject: [PATCH] fix fzf on linux --- .chezmoitemplates/fzf-zsh_linux.tmpl | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.chezmoitemplates/fzf-zsh_linux.tmpl b/.chezmoitemplates/fzf-zsh_linux.tmpl index 4de2485..d8a0331 100644 --- a/.chezmoitemplates/fzf-zsh_linux.tmpl +++ b/.chezmoitemplates/fzf-zsh_linux.tmpl @@ -1,7 +1,13 @@ # Setup fzf # --------- -if [[ ! "$PATH" == */root/.fzf/bin* ]]; then - PATH="${PATH:+${PATH}:}/root/.fzf/bin" +if [[ ! "$PATH" == */home/{{ .chezmoi.username }}/.fzf/bin* ]]; then + PATH="${PATH:+${PATH}:}/home/{{ .chezmoi.username }}/.fzf/bin" fi -source <(fzf --zsh) +# Auto-completion +# --------------- +[[ $- == *i* ]] && source "/home/{{ .chezmoi.username }}/.fzf/shell/completion.bash" 2> /dev/null + +# Key bindings +# ------------ +source "/home/{{ .chezmoi.username }}/.fzf/shell/key-bindings.zsh"