mirror of
https://gitlab.com/mlunax/dotfiles.git
synced 2025-04-18 16:26:50 +00:00
add pulumi lazyload
This commit is contained in:
parent
d4ee081bb4
commit
808023b9ad
1 changed files with 15 additions and 0 deletions
|
@ -17,3 +17,18 @@ if [ $commands[kubectl] ]; then
|
||||||
$0 "$@"
|
$0 "$@"
|
||||||
}
|
}
|
||||||
fi
|
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue