From 814683833880d7fd096591a0950ce9820202add2 Mon Sep 17 00:00:00 2001 From: theadam Date: Sun, 27 Apr 2025 16:51:01 +0200 Subject: [PATCH] +k-alias --- kubectl.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/kubectl.md b/kubectl.md index ee1faca..680417d 100755 --- a/kubectl.md +++ b/kubectl.md @@ -18,4 +18,14 @@ Source the `kubectl completion bash` in the ~/.bashrc file on every login. A sim echo 'source <(kubectl completion bash)' >> ~/.bashrc ``` -[source](https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/) \ No newline at end of file +[source](https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/) + +### k alias kubectl + +Simply add this to `~/.bashrc` +``` +alias k=kubectl +complete -F __start_kubectl k +``` + +[source](https://github.com/boltops-learn-docs/kubernetes-tips/blob/main/k-alias.md) \ No newline at end of file