sam: Add kubectl completion and "k" alias

This commit is contained in:
Chandler Swift 2026-02-06 17:04:08 -06:00
parent fdc7e241de
commit a0a3e0f720
No known key found for this signature in database
GPG key ID: B123483B24A4D579

View file

@ -139,6 +139,12 @@
programs.bash = {
enable = true;
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 = {