From ab2115ec53eaa88795b87667463b5c086bfb4707 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Grondek?= Date: Fri, 2 Oct 2020 14:44:14 +0200 Subject: [PATCH] Added bash completition for kubectl --- .bashrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.bashrc b/.bashrc index 66b4c89..16dbac2 100644 --- a/.bashrc +++ b/.bashrc @@ -146,3 +146,7 @@ fi shopt -s autocd export VISUAL=vim export EDITOR="$VISUAL" + +if command -v kubectl &> /dev/null ; then + source <(kubectl completion bash) +fi