fix fzf on linux
This commit is contained in:
parent
672ea43d5e
commit
b99f426e72
1 changed files with 9 additions and 3 deletions
|
@ -1,7 +1,13 @@
|
||||||
# Setup fzf
|
# Setup fzf
|
||||||
# ---------
|
# ---------
|
||||||
if [[ ! "$PATH" == */root/.fzf/bin* ]]; then
|
if [[ ! "$PATH" == */home/{{ .chezmoi.username }}/.fzf/bin* ]]; then
|
||||||
PATH="${PATH:+${PATH}:}/root/.fzf/bin"
|
PATH="${PATH:+${PATH}:}/home/{{ .chezmoi.username }}/.fzf/bin"
|
||||||
fi
|
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"
|
||||||
|
|
Loading…
Reference in a new issue