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
|
# 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
|
for file in ${completionFiles[@]}; do
|
||||||
# ---------------
|
[[ -f "${file}" ]] && source "${file}"
|
||||||
[[ $- == *i* ]] && source "/usr/share/fzf/completion.zsh"
|
done
|
||||||
|
|
||||||
# Key bindings
|
|
||||||
# ------------
|
|
||||||
source "/usr/share/fzf/key-bindings.zsh"
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user