1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-19 12:20:09 +00:00

kubectl: avoid conflict with existing f aliases in kca alias (#8625)

This commit is contained in:
Marco Seguri 2020-02-13 18:50:56 +01:00 committed by GitHub
parent f17e0219fd
commit 4fc570b0d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ fi
alias k=kubectl
# Execute a kubectl command against all namespaces
alias kca='f(){ kubectl "$@" --all-namespaces; unset -f f; }; f'
alias kca='_kca(){ kubectl "$@" --all-namespaces; unset -f _kca; }; _kca'
# Apply a YML file
alias kaf='kubectl apply -f'