zsh-linux: update fzf config to read Debian completion files

This commit is contained in:
Eric Torres 2024-08-17 18:44:23 -07:00
parent 9561df3123
commit 12505b09b8

View File

@ -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