mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-10-16 11:40:46 +00:00
Compare commits
5 commits
800943c3dd
...
cd1fd3fa7f
Author | SHA1 | Date | |
---|---|---|---|
|
cd1fd3fa7f | ||
|
367e9381df | ||
|
4056aaa986 | ||
|
5817e0a3c3 | ||
|
64ea3c0837 |
3 changed files with 3 additions and 1 deletions
|
@ -163,7 +163,7 @@ function git_current_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
|
||||
function git_previous_branch() {
|
||||
local ref
|
||||
|
|
|
@ -20,6 +20,7 @@ plugins=(... kubectl)
|
|||
| | | **Manage configuration quickly to switch contexts between local, dev and staging** |
|
||||
| kcuc | `kubectl config use-context` | Set the current-context in a kubeconfig file |
|
||||
| kcsc | `kubectl config set-context` | Set a context entry in kubeconfig |
|
||||
| kucc | `kubectl config unset current-context` | Unset the current-context in a kubeconfig file |
|
||||
| kcdc | `kubectl config delete-context` | Delete the specified context from the kubeconfig |
|
||||
| kccc | `kubectl config current-context` | Display the current-context |
|
||||
| kcgc | `kubectl config get-contexts` | List of contexts available |
|
||||
|
|
|
@ -29,6 +29,7 @@ alias kcuc='kubectl config use-context'
|
|||
alias kcsc='kubectl config set-context'
|
||||
alias kcdc='kubectl config delete-context'
|
||||
alias kccc='kubectl config current-context'
|
||||
alias kucc='kubectl config unset current-context'
|
||||
|
||||
# List all contexts
|
||||
alias kcgc='kubectl config get-contexts'
|
||||
|
|
Loading…
Reference in a new issue