[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
# 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
if command -v fish 2>/dev/null ; then
[ ! -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"
fi