Skip to content

Instantly share code, notes, and snippets.

@AlexZeitler
Last active September 9, 2016 09:52
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexZeitler/69140578a1bb13483242 to your computer and use it in GitHub Desktop.
Save AlexZeitler/69140578a1bb13483242 to your computer and use it in GitHub Desktop.
bash prompt including current git branch and current docker-machine
export PS1="\n\w\[\033[m\]\[\e[1;32m\]\$(__git_ps1) \[\033[36m\]\${DOCKER_MACHINE_NAME}\[\e[00m\]\n\[\033[32m\]⋙ \[\e[00m\] "
@AlexZeitler
Copy link
Author

Result:
image

This requires docker-machine 0.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment