2020-11-02 04:08:18 +00:00
|
|
|
#!/bin/sh
|
2020-10-10 06:50:55 +00:00
|
|
|
|
2020-11-02 04:08:18 +00:00
|
|
|
DIR=$(readlink -f "$(dirname "$0")")
|
|
|
|
. "$DIR/../env.sh"
|
2020-10-10 06:50:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
# install docker
|
|
|
|
case "$PM" in
|
|
|
|
apt)
|
|
|
|
#sudo snap install kubectl --classic
|
|
|
|
;;
|
|
|
|
pacman)
|
|
|
|
# TODO
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# completion for fish
|
|
|
|
case "$DEFAULT_SHELL" in
|
|
|
|
"$FISH")
|
2020-11-02 04:08:18 +00:00
|
|
|
[ ! -f "$HOME/.config/fish/completions/docker.fish" ] && \
|
|
|
|
curl -Lo "$HOME/.config/fish/completions/docker.fish" --create-dirs \
|
2020-10-10 06:50:55 +00:00
|
|
|
'https://github.com/docker/cli/raw/master/contrib/completion/fish/docker.fish'
|
|
|
|
fish -c "fisher add evanlucas/fish-kubectl-completions"
|
|
|
|
;;
|
|
|
|
esac
|