1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-10-16 11:40:46 +00:00

Compare commits

...

3 commits

Author SHA1 Message Date
Arpit Gupta
b1c8f5cdd0
Merge 11387f4a3a into 367e9381df 2024-09-23 17:33:05 +02:00
Carlo Sala
367e9381df
chore(git): fix typo 2024-09-23 17:32:44 +02:00
Arpit Gupta
11387f4a3a feat(kubectl) add aliases for certificate 2024-09-17 16:56:57 -05:00
3 changed files with 12 additions and 1 deletions

View file

@ -163,7 +163,7 @@ function git_current_branch() {
} }
# Outputs the name of the previously checked out branch # Outputs the name of the previously checked out branch
# Usage example: git pull origin $(git_current_branch) # Usage example: git pull origin $(git_previous_branch)
# rev-parse --symbolic-full-name @{-1} only prints if it is a branch # rev-parse --symbolic-full-name @{-1} only prints if it is a branch
function git_previous_branch() { function git_previous_branch() {
local ref local ref

View file

@ -129,6 +129,11 @@ plugins=(... kubectl)
| kej | `kubectl edit job` | Edit a Job in details | | kej | `kubectl edit job` | Edit a Job in details |
| kdj | `kubectl describe job` | Describe the Job | | kdj | `kubectl describe job` | Describe the Job |
| kdelj | `kubectl delete job` | Delete the Job | | kdelj | `kubectl delete job` | Delete the Job |
| | | **Certificate management** |
| kgcert | `kubectl get certificate` | List Certificate in the namespace |
| kgcerta | `kubectl get certificate --all-namespaces` | List Certificates in all namespaces |
| kdcert | `kubectl describe certificate` | Describe the Certificate |
| kdelcert | `kubectl delete certificate` | Delete the Certificate |
## Wrappers ## Wrappers

View file

@ -178,6 +178,12 @@ alias kej='kubectl edit job'
alias kdj='kubectl describe job' alias kdj='kubectl describe job'
alias kdelj='kubectl delete job' alias kdelj='kubectl delete job'
# Certificate management.
alias kgcert='kubectl get certificate'
alias kgcerta='kubectl get certificate --all-namespaces'
alias kdcert='kubectl describe certificate'
alias kdelcert='kubectl delete certificate'
# Utility print functions (json / yaml) # Utility print functions (json / yaml)
function _build_kubectl_out_alias { function _build_kubectl_out_alias {
setopt localoptions norcexpandparam setopt localoptions norcexpandparam