zsh-linux: update fzf config to read Debian completion files
This commit is contained in:
parent
9561df3123
commit
12505b09b8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user