fix(shell/kubernetes): improve shell startup time

This commit is contained in:
2023-03-04 05:01:19 +00:00
parent 9b63c538c2
commit fcf9ee7e2a

View File

@@ -22,7 +22,10 @@ if command-exists kubectl; then
zinit light-mode wait lucid as'program' from'gh-r' \ zinit light-mode wait lucid as'program' from'gh-r' \
for @stackrox/kube-linter for @stackrox/kube-linter
if ! kubectl krew &> /dev/null; then export KREW_ROOT="$HOME/.krew"
path_append "${KREW_ROOT}/bin"
if ! command-exists kubectl-krew; then
krew-bin() { krew-bin() {
echo "krew-$(uname | tr '[:upper:]' '[:lower:]')_$(uname -m | sed -e \ echo "krew-$(uname | tr '[:upper:]' '[:lower:]')_$(uname -m | sed -e \
's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' \ 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' \