feat: refacto aliases/completion kubectl, helm, stern
This commit is contained in:
parent
2cae0f7d03
commit
0e58fa99f4
@ -1,11 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if (which kubectl &> /dev/null)
|
if (command -v kubectl &> /dev/null)
|
||||||
then
|
then
|
||||||
|
|
||||||
# activate completion
|
|
||||||
source <(kubectl completion bash)
|
|
||||||
|
|
||||||
# create a quick alias
|
# create a quick alias
|
||||||
alias k=kubectl
|
alias k=kubectl
|
||||||
alias ks="kubectl --namespace kube-system"
|
alias ks="kubectl --namespace kube-system"
|
@ -1,9 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if (which helm &> /dev/null)
|
if (command -v helm &> /dev/null)
|
||||||
then
|
then
|
||||||
|
|
||||||
# activate completion
|
|
||||||
source <( helm completion bash )
|
source <( helm completion bash )
|
||||||
|
|
||||||
fi
|
fi
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if ( which kubectl ) &> /dev/null
|
if (command -v kubectl &> /dev/null)
|
||||||
then
|
then
|
||||||
source <(kubectl completion bash)
|
source <(kubectl completion bash)
|
||||||
fi
|
fi
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if (which stern &> /dev/null)
|
if (command -v stern &> /dev/null)
|
||||||
then
|
then
|
||||||
|
|
||||||
# activate completion
|
|
||||||
source <(stern --completion bash)
|
source <(stern --completion bash)
|
||||||
|
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue
Block a user