mirror of
https://gitlab.com/mlunax/dotfiles.git
synced 2025-04-12 05:40:17 +00:00
Remove lazy shell function for 'kubectl'.
This commit is contained in:
parent
b6d49d3d8c
commit
1637bf21f7
1 changed files with 0 additions and 19 deletions
19
.zsh/lazy.sh
19
.zsh/lazy.sh
|
@ -1,19 +0,0 @@
|
|||
#!/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
|
Loading…
Add table
Reference in a new issue