From ebd9124bb17b35248e66a6d5f9b15e2c7651c714 Mon Sep 17 00:00:00 2001 From: Dmytro Meleshko Date: Mon, 11 May 2020 14:20:26 +0300 Subject: [PATCH] [zsh] import completion.zsh changes from OMZ --- zsh/completion.zsh | 9 +++++---- zsh/env.zsh | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) 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