helm/misc/docker/aliases.zsh

14 lines
333 B
Bash
Raw Normal View History

dk() {
case $(.os) in
macos) if [[ -z $DOCKER_HOST ]]; then
docker-machine start dev && eval $(docker-machine env)
fi
;;
arch) systemctl -q is-active docker || sudo systemctl start docker ;;
esac
sudo docker $@
}; compdef dk=docker
alias dkc=docker-compose
alias dkm=docker-machine