zsh: colorful kubectl using grc

This commit is contained in:
Daniel Lundin 2023-06-06 12:20:24 +02:00
parent a941385823
commit 3ae7467ed5

10
.zshrc
View file

@ -204,8 +204,7 @@ if [ ! -f "${fpath[1]}/_kubectl" ]; then
command -v kubectl >/dev/null 2>&1 && kubectl completion zsh > "${fpath[1]}/_kubectl" command -v kubectl >/dev/null 2>&1 && kubectl completion zsh > "${fpath[1]}/_kubectl"
fi fi
export PATH=$HOME/.krew/bin:$PATH export PATH=$HOME/.krew/bin:$PATH
alias kubectl=kubecolor alias kubectl='grc kubectl'
compdef kubecolor=kubectl
## bazel ## bazel
#if [ ! -f "${fpath[1]}/_bazel" ]; then #if [ ! -f "${fpath[1]}/_bazel" ]; then
@ -260,3 +259,10 @@ PROG=tea _CLI_ZSH_AUTOCOMPLETE_HACK=1 source "/home/dln/.config/tea/autocomplete
## AWS ## AWS
complete -o nospace -C /usr/bin/mcli mcli complete -o nospace -C /usr/bin/mcli mcli
complete -C '/usr/bin/aws_completer' aws complete -C '/usr/bin/aws_completer' aws
function _grc() {
shift words
(( CURRENT-- ))
_normal
}
compdef _grc grc