Skip to content

Instantly share code, notes, and snippets.

@austinhyde
Last active March 18, 2016 20:49
Show Gist options
  • Save austinhyde/e77a4dafc03fd3a631e2 to your computer and use it in GitHub Desktop.
Save austinhyde/e77a4dafc03fd3a631e2 to your computer and use it in GitHub Desktop.
function __dm {
DM="$(docker-machine active 2>&1)" && printf "$1" "$DM"
}
export PS1='… $(__dm '%s ') …'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment