mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[zsh] import completion.zsh changes from OMZ
This commit is contained in:
parent
817eb9a002
commit
ebd9124bb1
2 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue