Skip to content

Instantly share code, notes, and snippets.

View lenka21's full-sized avatar

Magdalena Szumna lenka21

View GitHub Profile
@lenka21
lenka21 / .bash_prompt.sh
Created January 12, 2016 10:03 — forked from noisy/.bash_prompt.sh
.bash_prompt.sh (support for git + virtualenv)
#!/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.