fix fzf on linux
This commit is contained in:
parent
8755313f5b
commit
672ea43d5e
2 changed files with 4 additions and 10 deletions
|
@ -1,13 +1,7 @@
|
||||||
# Setup fzf
|
# Setup fzf
|
||||||
# ---------
|
# ---------
|
||||||
if [[ ! "$PATH" == */home/{{ .chezmoi.username }}/.fzf/bin* ]]; then
|
if [[ ! "$PATH" == */root/.fzf/bin* ]]; then
|
||||||
PATH="${PATH:+${PATH}:}/home/{{ .chezmoi.username }}/.fzf/bin"
|
PATH="${PATH:+${PATH}:}/root/.fzf/bin"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Auto-completion
|
source <(fzf --zsh)
|
||||||
# ---------------
|
|
||||||
[[ $- == *i* ]] && source "/home/{{ .chezmoi.username }}/.fzf/shell/completion.bash" 2> /dev/null
|
|
||||||
|
|
||||||
# Key bindings
|
|
||||||
# ------------
|
|
||||||
source "/home/{{ .chezmoi.username }}/.fzf/shell/key-bindings.zsh"
|
|
||||||
|
|
|
@ -112,7 +112,7 @@ export PATH=$PATH:/usr/local/go/bin
|
||||||
|
|
||||||
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
|
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||||
source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.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
|
export EDITOR=vim
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue