fzf support for root user

This commit is contained in:
Simon Rieger 2025-01-24 14:34:06 +01:00
parent 4ef5c53392
commit c7dffe1f13

View file

@ -1,13 +1,13 @@
# Setup fzf # Setup fzf
# --------- # ---------
if [[ ! "$PATH" == */home/{{ .chezmoi.username }}/.fzf/bin* ]]; then if [[ ! "$PATH" == *$HOME/.fzf/bin* ]]; then
PATH="${PATH:+${PATH}:}/home/{{ .chezmoi.username }}/.fzf/bin" PATH="${PATH:+${PATH}:}$HOME/.fzf/bin"
fi fi
# Auto-completion # 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 # Key bindings
# ------------ # ------------
source "/home/{{ .chezmoi.username }}/.fzf/shell/key-bindings.zsh" source "$HOME/.fzf/shell/key-bindings.zsh"