feat: refacto aliases/completion kubectl, helm, stern

This commit is contained in:
Xavier Logerais 2023-04-03 10:38:42 +02:00
parent 2cae0f7d03
commit 0e58fa99f4
4 changed files with 4 additions and 13 deletions

View File

@ -1,11 +1,8 @@
#!/bin/bash
if (which kubectl &> /dev/null)
if (command -v kubectl &> /dev/null)
then
# activate completion
source <(kubectl completion bash)
# create a quick alias
alias k=kubectl
alias ks="kubectl --namespace kube-system"

View File

@ -1,9 +1,6 @@
#!/bin/bash
if (which helm &> /dev/null)
if (command -v helm &> /dev/null)
then
# activate completion
source <( helm completion bash )
fi

View File

@ -1,6 +1,6 @@
#!/bin/bash
if ( which kubectl ) &> /dev/null
if (command -v kubectl &> /dev/null)
then
source <(kubectl completion bash)
fi

View File

@ -1,9 +1,6 @@
#!/bin/bash
if (which stern &> /dev/null)
if (command -v stern &> /dev/null)
then
# activate completion
source <(stern --completion bash)
fi