Skip to content

Instantly share code, notes, and snippets.

@eitheror
eitheror / git_bash_prompt.sh
Created January 6, 2018 01:04
Set color bash prompt according to git branch and virtualenv activation.
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the branch/status of the current git repository
# * the name of the current virtualenv (if activated)
#
# https://gist.github.com/hugorodgerbrown/4143150/
#