diff --git a/zsh/completion.zsh b/zsh/completion.zsh index 439f4e8..5ae1e87 100644 --- a/zsh/completion.zsh +++ b/zsh/completion.zsh @@ -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 diff --git a/zsh/env.zsh b/zsh/env.zsh index 8dc25fa..07f3124 100644 --- a/zsh/env.zsh +++ b/zsh/env.zsh @@ -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