[zsh] import completion.zsh changes from OMZ

This commit is contained in:
Dmytro Meleshko 2020-05-11 14:20:26 +03:00
parent 817eb9a002
commit ebd9124bb1
2 changed files with 6 additions and 5 deletions

View File

@ -7,8 +7,8 @@ zstyle ':completion:*' menu select
# show even more completion results
zstyle ':completion:*' verbose yes
zstyle ':completion::complete:*' use-cache yes
zstyle ':completion::complete:*' cache-path "$ZSH_CACHE_DIR"
zstyle ':completion:*' use-cache yes
zstyle ':completion::*' cache-path "$ZSH_CACHE_DIR"
# group completion result based on their categories
zstyle ':completion:*' group-name ''
@ -44,5 +44,6 @@ _completion_get_hosts() {
awk "match(\$0, /^Host[[:blank:]]*/) { print substr(\$0, RLENGTH+1); }" ~/.ssh/config
fi
}
zstyle -e ':completion:*:hosts' hosts 'reply=("${(@f)$(_completion_get_hosts)}")
'
zstyle -e ':completion:*:hosts' hosts 'reply=("${(@f)$(_completion_get_hosts)}")'
autoload -U +X bashcompinit && bashcompinit

View File

@ -26,6 +26,6 @@ jq_colors=(
"0;39" # arrays
"0;39" # objects
)
# join all values from jq_colors with a semicolon
# join all values from jq_colors with a colon
export JQ_COLORS="${(j.:.)jq_colors}"
unset jq_colors