Skip to content

Instantly share code, notes, and snippets.

View awbacker's full-sized avatar

Andrew Backer awbacker

  • ScantTrust
  • Shanghai, China
View GitHub Profile
@awbacker
awbacker / bash_prompt.sh
Created April 16, 2017 05:33 — 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.