From b42200a043fbcb45de0a5c771623423a63ab38b3 Mon Sep 17 00:00:00 2001 From: Ein Verne Date: Wed, 23 Apr 2025 09:49:23 +0900 Subject: [PATCH] feat: add kubectl and helm autocompletion to zshrc --- .zshrc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.zshrc b/.zshrc index 395b951..9159eac 100644 --- a/.zshrc +++ b/.zshrc @@ -59,6 +59,21 @@ zinit ice lucid wait='0' atinit='zpcompinit' zinit light zdharma-continuum/fast-syntax-highlighting # 自动建议 + +zinit light-mode lucid wait has"kubectl" for \ + id-as"kubectl-completion" \ + as"completion" \ + atclone"kubectl completion zsh > _kubectl" \ + atpull"%atclone" \ + zdharma-continuum/null + +zinit light-mode lucid wait has"helm" for \ + id-as"helm-completion" \ + as"completion" \ + atclone"helm completion zsh > _helm" \ + atpull"%atclone" \ + zdharma-continuum/null + zinit ice lucid wait="0" atload='_zsh_autosuggest_start' zinit light zsh-users/zsh-autosuggestions