Skip to content

Instantly share code, notes, and snippets.

@troelskn
Last active February 3, 2019 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save troelskn/31098faa32d9728785f0d4eef7179460 to your computer and use it in GitHub Desktop.
Save troelskn/31098faa32d9728785f0d4eef7179460 to your computer and use it in GitHub Desktop.
PS1='\[\e[1m\]\[\e[34m\]\u@\h$([ "$DOCKER_MACHINE_NAME" = "" ] || echo " \[\e[33m\][docker-machine:$DOCKER_MACHINE_NAME]\[\e[34m\]"): \[\e[35m\]\w\[\e[33m\]$(__git_ps1) \[\e[34m\]$\[\e[0m\] '
docker-machine-auth () {
MACHINE_NAME=$1
if [ "$MACHINE_NAME" = "" ]
then
eval "$(docker-machine env -u)"
else
eval "$(docker-machine env $MACHINE_NAME)"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment