fix fzf on linux

This commit is contained in:
Simon Rieger 2025-01-19 18:07:41 +01:00
parent 8755313f5b
commit 672ea43d5e
2 changed files with 4 additions and 10 deletions

View file

@ -1,13 +1,7 @@
# Setup fzf
# ---------
if [[ ! "$PATH" == */home/{{ .chezmoi.username }}/.fzf/bin* ]]; then
PATH="${PATH:+${PATH}:}/home/{{ .chezmoi.username }}/.fzf/bin"
if [[ ! "$PATH" == */root/.fzf/bin* ]]; then
PATH="${PATH:+${PATH}:}/root/.fzf/bin"
fi
# 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"
source <(fzf --zsh)

View file

@ -112,7 +112,7 @@ export PATH=$PATH:/usr/local/go/bin
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/.fzf/shell/key-bindings.zsh
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export EDITOR=vim