1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-02-11 05:39:45 +08:00

Compare commits

...

2 Commits

Author SHA1 Message Date
za
608ffc6b32
Merge 6f0c5e1bd5 into 67cd8c4673 2026-01-26 10:03:59 +01:00
za
6f0c5e1bd5 kubectl: Add alias plugin for kubectl auth can-i --list
This shortcut is useful to check allowed action. It's common to execute
this command when checking kubernetes security.

GitHub issue:
https://github.com/ohmyzsh/ohmyzsh/issues/13076
2025-04-22 13:38:32 +07:00

View File

@ -186,6 +186,9 @@ alias kej='kubectl edit job'
alias kdj='kubectl describe job'
alias kdelj='kubectl delete job'
# Check allowed action
alias kacil='kubectl auth can-i --list'
# Utility print functions (json / yaml)
function _build_kubectl_out_alias {
setopt localoptions norcexpandparam