Skip to content

Instantly share code, notes, and snippets.

@xcambar
Created February 23, 2016 13:48
Show Gist options
  • Save xcambar/73c02d77265766109b6f to your computer and use it in GitHub Desktop.
Save xcambar/73c02d77265766109b6f to your computer and use it in GitHub Desktop.
Indicates the currently active docker machine, if any.
function docker_indicator() {
if [[ -n "$DOCKER_MACHINE_NAME" ]]; then
echo "%F{blue}(🐳 $DOCKER_MACHINE_NAME)%f"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment