sam: Add kubectl completion and "k" alias
This commit is contained in:
parent
fdc7e241de
commit
a0a3e0f720
1 changed files with 6 additions and 0 deletions
|
|
@ -139,6 +139,12 @@
|
||||||
programs.bash = {
|
programs.bash = {
|
||||||
enable = true;
|
enable = true;
|
||||||
historyControl = [ "ignoredups" "ignorespace" ];
|
historyControl = [ "ignoredups" "ignorespace" ];
|
||||||
|
initExtra = ''
|
||||||
|
# https://kubernetes.io/docs/reference/kubectl/quick-reference/#bash
|
||||||
|
source <(kubectl completion bash)
|
||||||
|
alias k=kubectl
|
||||||
|
complete -o default -F __start_kubectl k
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.go = {
|
programs.go = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue