[bugfix] abandon DEFAULT_SHELL checking logic
This commit is contained in:
parent
b12a78eacc
commit
e99ca2d722
|
@ -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
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user