This commit is contained in:
Jason Swank 2025-01-10 01:50:20 +00:00
parent 74acb08ca2
commit f31d40273c

View File

@ -85,13 +85,19 @@ for env in $HOME/.okta/.env $HOME/.aws/.env $HOME/config/git/.env; do
fi fi
done done
autoload bashcompinit && bashcompinit # command line completion
autoload -Uz compinit autoload -U +X bashcompinit && bashcompinit
compinit autoload -Uz compinit && compinit
# kubectl # kubectl
[[ $commands[kubectl] ]] && source <(kubectl completion zsh) [[ $commands[kubectl] ]] && source <(kubectl completion zsh)
# AWS CLI completion
if command -v aws_completer > /dev/null; then
complete -C aws_completer aws
fi
# Highlight the current autocomplete option # Highlight the current autocomplete option
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}" zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
@ -109,13 +115,7 @@ fi
zstyle :compinstall filename '~/.zshrc' zstyle :compinstall filename '~/.zshrc'
if [[ -x /usr/bin/aws_completer ]]; then
complete -C '/usr/bin/aws_completer' aws
fi
#zstyle ':completion:*' completer _complete _ignored #zstyle ':completion:*' completer _complete _ignored
#zstyle :compinstall filename '~/.zshrc' #zstyle :compinstall filename '~/.zshrc'
autoload -U +X bashcompinit && bashcompinit #compinit
autoload -Uz compinit
compinit