diff --git a/zsh-linux/.config/zsh-linux/fzf.zsh b/zsh-linux/.config/zsh-linux/fzf.zsh index 08e2c3f..f31ba18 100644 --- a/zsh-linux/.config/zsh-linux/fzf.zsh +++ b/zsh-linux/.config/zsh-linux/fzf.zsh @@ -1,10 +1,12 @@ # Setup fzf # --------- +local _completionFiles=( + '/usr/share/fzf/completion.zsh' # Arch + '/usr/share/fzf/key-bindings.zsh' # Arch + '/usr/share/doc/fzf/examples/completion.zsh' # Debian + '/usr/share/doc/fzf/examples/key-bindings.zsh' # Debian + ) -# Auto-completion -# --------------- -[[ $- == *i* ]] && source "/usr/share/fzf/completion.zsh" - -# Key bindings -# ------------ -source "/usr/share/fzf/key-bindings.zsh" +for file in ${completionFiles[@]}; do + [[ -f "${file}" ]] && source "${file}" +done