Skip to content

Commit

Permalink
feat: kubectl auto completion support
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreytse committed Aug 28, 2024
1 parent 1a8fd2a commit b1b2fe7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions zsh/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ zinit snippet OMZP::gem
# docker
zinit snippet OMZP::docker-compose

# kubernetes
zinit snippet OMZP::kubectl

# others
zinit snippet OMZP::history
zinit snippet OMZP::textmate
Expand Down Expand Up @@ -300,6 +303,11 @@ eval "$(starship init zsh)"

eval "$(z init zsh)"

# kubectl auto completion
if command -v kubectl &>/dev/null; then
source <(kubectl completion zsh)
fi

# Clean filesystem user watches
function fs-watcher-clean() {
if [[ "$OSTYPE" == "darwin"* ]]; then
Expand Down

0 comments on commit b1b2fe7

Please sign in to comment.