Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
978b724c
Unverified
Commit
978b724c
authored
Apr 17, 2019
by
Marc Cornellà
Committed by
GitHub
Apr 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kubectl: rename k alias (#7749)
This uses `ku` instead of `k` as an alias for kubectl. Fixes #6408
parent
2c1880cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
README.md
plugins/kubectl/README.md
+1
-1
kubectl.plugin.zsh
plugins/kubectl/kubectl.plugin.zsh
+1
-2
No files found.
plugins/kubectl/README.md
View file @
978b724c
...
@@ -13,7 +13,7 @@ plugins=(... kubectl)
...
@@ -13,7 +13,7 @@ plugins=(... kubectl)
| Alias | Command | Description |
| Alias | Command | Description |
|:--------|:------------------------------------|:-------------------------------------------------------------------------------------------------|
|:--------|:------------------------------------|:-------------------------------------------------------------------------------------------------|
| k
|
`kubectl`
| The kubectl command |
| k
u
|
`kubectl`
| The kubectl command |
| kca |
`kubectl --all-namespaces`
| The kubectl command targeting all namespaces |
| kca |
`kubectl --all-namespaces`
| The kubectl command targeting all namespaces |
| kaf |
`kubectl apply -f`
| Apply a YML file |
| kaf |
`kubectl apply -f`
| Apply a YML file |
| keti |
`kubectl exec -ti`
| Drop into an interactive terminal on a container |
| keti |
`kubectl exec -ti`
| Drop into an interactive terminal on a container |
...
...
plugins/kubectl/kubectl.plugin.zsh
View file @
978b724c
...
@@ -10,8 +10,7 @@ if (( $+commands[kubectl] )); then
...
@@ -10,8 +10,7 @@ if (( $+commands[kubectl] )); then
unset
__KUBECTL_COMPLETION_FILE
unset
__KUBECTL_COMPLETION_FILE
fi
fi
# This command is used a LOT both below and in daily life
alias
ku
=
kubectl
alias
k
=
kubectl
# Execute a kubectl command against all namespaces
# Execute a kubectl command against all namespaces
alias
kca
=
'f(){ kubectl "$@" --all-namespaces; unset -f f; }; f'
alias
kca
=
'f(){ kubectl "$@" --all-namespaces; unset -f f; }; f'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment