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