[feature] install kubectl and its fish completion
This commit is contained in:
parent
2b642594c6
commit
b246e7dc44
25
apps/k8s.sh
Executable file
25
apps/k8s.sh
Executable file
|
@ -0,0 +1,25 @@
|
|||
#!/bin/bash
|
||||
|
||||
DIR=$(readlink -f $(dirname $0))
|
||||
. $DIR/../env.sh
|
||||
|
||||
|
||||
# install docker
|
||||
case "$PM" in
|
||||
apt)
|
||||
#sudo snap install kubectl --classic
|
||||
;;
|
||||
pacman)
|
||||
# TODO
|
||||
;;
|
||||
esac
|
||||
|
||||
# completion for fish
|
||||
case "$DEFAULT_SHELL" in
|
||||
"$FISH")
|
||||
[[ ! -f $HOME/.config/fish/completions/docker.fish ]] && \
|
||||
curl -Lo $HOME/.config/fish/completions/docker.fish --create-dirs \
|
||||
'https://github.com/docker/cli/raw/master/contrib/completion/fish/docker.fish'
|
||||
fish -c "fisher add evanlucas/fish-kubectl-completions"
|
||||
;;
|
||||
esac
|
Loading…
Reference in New Issue
Block a user