From b1b8a4b3f9b86970fdbb046abaac1564b8086117 Mon Sep 17 00:00:00 2001 From: Xavier Logerais Date: Fri, 23 Apr 2021 12:57:08 +0200 Subject: [PATCH] feat: add support for some kubernetes tools --- rc.d/helm | 9 +++++++++ rc.d/kubectl | 2 ++ rc.d/stern | 9 +++++++++ 3 files changed, 20 insertions(+) create mode 100644 rc.d/helm create mode 100644 rc.d/stern diff --git a/rc.d/helm b/rc.d/helm new file mode 100644 index 0000000..f19f0cd --- /dev/null +++ b/rc.d/helm @@ -0,0 +1,9 @@ +#!/bin/bash + +if (which helm &> /dev/null) +then + + # activate completion + source <( helm completion bash ) + +fi diff --git a/rc.d/kubectl b/rc.d/kubectl index 5a3f2f8..2569e1c 100644 --- a/rc.d/kubectl +++ b/rc.d/kubectl @@ -8,8 +8,10 @@ then # create a quick alias alias k=kubectl + alias ks="kubectl --namespace kube-system" # add completion for the alias as well complete -o default -F __start_kubectl k + complete -o default -F __start_kubectl ks fi diff --git a/rc.d/stern b/rc.d/stern new file mode 100644 index 0000000..e38c12f --- /dev/null +++ b/rc.d/stern @@ -0,0 +1,9 @@ +#!/bin/bash + +if (which stern &> /dev/null) +then + + # activate completion + source <(stern --completion bash) + +fi