[bugfix] abandon DEFAULT_SHELL checking logic

This commit is contained in:
Klesh Wong 2020-11-09 18:07:06 +08:00
parent b12a78eacc
commit e99ca2d722

View File

@ -15,11 +15,9 @@ case "$PM" in
esac esac
# completion for fish # completion for fish
case "$DEFAULT_SHELL" in if command -v fish 2>/dev/null ; then
"$FISH")
[ ! -f "$HOME/.config/fish/completions/docker.fish" ] && \ [ ! -f "$HOME/.config/fish/completions/docker.fish" ] && \
curl -Lo "$HOME/.config/fish/completions/docker.fish" --create-dirs \ curl -Lo "$HOME/.config/fish/completions/docker.fish" --create-dirs \
'https://github.com/docker/cli/raw/master/contrib/completion/fish/docker.fish' 'https://github.com/docker/cli/raw/master/contrib/completion/fish/docker.fish'
fish -c "fisher add evanlucas/fish-kubectl-completions" fish -c "fisher add evanlucas/fish-kubectl-completions"
;; fi
esac