Skip to content

Instantly share code, notes, and snippets.

View bmcguirk's full-sized avatar

Brian J. McGuirk bmcguirk

View GitHub Profile
@bmcguirk
bmcguirk / bash_prompt.sh
Created August 23, 2016 19:34 — forked from insin/bash_prompt.sh
Set color bash prompt according to active virtualenv, git branch and return status of last command.
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the active virtualenv
# * the branch/status of the current git repository
# * the return value of the previous command
# * the fact you just came from Windows and are used to having newlines in
# your prompts.