docker-machine: Deprecate both plugin and completion file

This commit is contained in:
Noah Gorny
2021-01-09 21:17:38 +02:00
parent 1ce93fd60e
commit 2500fe7dda
3 changed files with 8 additions and 442 deletions

View File

@@ -1,13 +1,5 @@
# shellcheck shell=bash
cite about-plugin
about-plugin 'Helpers to get Docker setup correctly for docker-machine'
[ -z ${BASH_IT_DOCKER_MACHINE+x} ] && BASH_IT_DOCKER_MACHINE='dev'
# Note, this might need to be different if you use a machine other than 'dev'
if [[ `uname -s` == "Darwin" ]]; then
# check if dev machine is running
docker-machine ls | grep --quiet "$BASH_IT_DOCKER_MACHINE.*Running"
if [[ "$?" = "0" ]]; then
eval "$(docker-machine env $BASH_IT_DOCKER_MACHINE)"
fi
fi
_log_error '"docker-machine" is now deprecated, and as such the plugin for it is also deprecated.
Please disable this plugin.'