File tree Expand file tree Collapse file tree 3 files changed +25
-4
lines changed
Expand file tree Collapse file tree 3 files changed +25
-4
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ if test ! -f ~ /.config/fubectl/fubectl.source; then
3+ return
4+ fi
5+
6+ source ~ /.config/fubectl/fubectl.source
Original file line number Diff line number Diff line change @@ -9,7 +9,13 @@ complete -o default -F __start_kubectl k
99PATH=" ${KREW_ROOT:- $HOME / .krew} /bin:$PATH "
1010export PATH
1111
12- # kubectl
12+ # K9s
13+ alias k9r=' k9s --readonly --command pulses'
14+
15+ # kubectl, unless fubectl exists
16+ if test -f ~ /.config/fubectl/fubectl.source; then
17+ return
18+ fi
1319alias k=' kubectl'
1420alias ka=' kubectl apply'
1521alias kci=' kubectl cluster-info'
@@ -30,6 +36,3 @@ alias kx='kubectl exec -i -t'
3036# Unset SHELL for Git Bash, see https://github.com/ahmetb/kubectx/issues/330#issuecomment-1506657091
3137alias kctx=' SHELL= kubectx'
3238alias kns=' SHELL= kubens'
33-
34- # K9s
35- alias k9r=' k9s --readonly --command pulses'
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ source ~ /.dotfiles/err.sh " ${BASH_SOURCE[0]} "
3+ source ~ /.dotfiles/log.sh " ${BASH_SOURCE[0]} "
4+
5+ echolog " Installing fubectl"
6+
7+ curl -LO https://rawgit.com/kubermatic/fubectl/main/fubectl.source
8+ rm -rf ~ /.config/fubectl
9+ mkdir -p ~ /.config/fubectl
10+ mv fubectl.source ~ /.config/fubectl/fubectl.source
11+
12+ echolog " Installed $( file ~ /.config/fubectl/fubectl.source) "
You can’t perform that action at this time.
0 commit comments