Improving shell
This commit is contained in:
22
modules/optionnals/k8s.nix
Normal file
22
modules/optionnals/k8s.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
environment.systemPackages = [
|
||||
pkgs.kubectl
|
||||
pkgs.kubernetes-helm
|
||||
pkgs.k9s # Interface TUI pour Kubernetes
|
||||
pkgs.kubectx # Changement rapide de contexte
|
||||
pkgs.kustomize
|
||||
];
|
||||
programs.zsh.promptInit = ''
|
||||
# kubectl
|
||||
source <(kubectl completion zsh)
|
||||
alias k=kubectl
|
||||
alias h=helm
|
||||
alias kn=kubens
|
||||
compdef __start_kubectl k
|
||||
compdef __start_helm h
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user