Compare commits
5 Commits
7f3f24e14d
...
c9411bb43d
Author | SHA1 | Date | |
---|---|---|---|
|
c9411bb43d | ||
|
c9bb673a15 | ||
|
ee3626059c | ||
|
9fddab2e35 | ||
|
2fa4a55223 |
@ -1,14 +1,16 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if (command -v kubectl &> /dev/null)
|
if (command -v kubectl &>/dev/null); then
|
||||||
then
|
|
||||||
|
|
||||||
# create a quick alias
|
# create some usefull aliases
|
||||||
alias k=kubectl
|
alias k="kubectl"
|
||||||
alias ks="kubectl --namespace kube-system"
|
alias kg="kubectl get"
|
||||||
|
alias kd="kubectl describe"
|
||||||
|
alias ks="kubectl --namespace kube-system"
|
||||||
|
alias kga="kubectl get --all-namespaces"
|
||||||
|
|
||||||
# add completion for the alias as well
|
# add completion for the alias as well
|
||||||
complete -o default -F __start_kubectl k
|
complete -o default -F __start_kubectl k
|
||||||
complete -o default -F __start_kubectl ks
|
complete -o default -F __start_kubectl ks
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
5
completion.d/mise
Normal file
5
completion.d/mise
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if (command -v mise &>/dev/null); then
|
||||||
|
source <(mise completion bash)
|
||||||
|
fi
|
11
profile.d/asdf
Normal file
11
profile.d/asdf
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f ~/.asdf/asdf.sh ]; then
|
||||||
|
|
||||||
|
# activate asdf
|
||||||
|
source ~/.asdf/asdf.sh
|
||||||
|
|
||||||
|
# activate completion
|
||||||
|
source ~/.asdf/completions/asdf.bash
|
||||||
|
|
||||||
|
fi
|
5
profile.d/krew
Normal file
5
profile.d/krew
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if (command -v krew &>/dev/null); then
|
||||||
|
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user