#!/usr/bin/env zsh # Check if 'kubectl' is a command in $PATH if [ $commands[kubectl] ]; then # Placeholder 'kubectl' shell function: # Will only be executed on the first call to 'kubectl' kubectl() { # Remove this function, subsequent calls will execute 'kubectl' directly unfunction "$0" # Load auto-completion source <(kubectl completion zsh) # Execute 'kubectl' binary $0 "$@" } fi if [ $commands[pulumi] ]; then # Placeholder 'kubectl' shell function: # Will only be executed on the first call to 'kubectl' pulumi() { # Remove this function, subsequent calls will execute 'kubectl' directly unfunction "$0" # Load auto-completion source <(pulumi gen-completion zsh) $0 "$@" } fi