2019-07-24 09:32:04 +00:00
|
|
|
#!/bin/zsh
|
|
|
|
#
|
2019-02-18 16:55:05 +00:00
|
|
|
# Speed up autocomplete, force prefix mapping
|
|
|
|
zstyle ':completion:*' accept-exact '*(N)'
|
|
|
|
zstyle ':completion:*' use-cache on
|
|
|
|
zstyle ':completion:*' cache-path ~/.zsh/cache
|
2019-07-24 08:54:06 +00:00
|
|
|
# shellcheck disable=SC2016
|
2019-07-24 09:32:04 +00:00
|
|
|
zstyle -e ':completion:*:default' list-colors 'reply=("${PREFIX:+=(#bi)($PREFIX:t)*==34=34}:${(s.:.)LS_COLORS}")'
|
2019-02-18 16:55:05 +00:00
|
|
|
|
|
|
|
# Load any custom zsh completions we've installed
|
|
|
|
if [ -d ~/.zsh-completions ]; then
|
2019-07-24 09:32:04 +00:00
|
|
|
for completion in ~/.zsh-completions/*; do
|
2019-07-24 08:54:06 +00:00
|
|
|
# shellcheck source=/dev/null
|
2019-02-18 16:55:05 +00:00
|
|
|
source "$completion"
|
|
|
|
done
|
2019-07-24 05:33:28 +00:00
|
|
|
fi
|