Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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