Skip to content

Instantly share code, notes, and snippets.

View FDJ-Dash's full-sized avatar
😎
I may be slow to respond.

Fer FDJ-Dash

😎
I may be slow to respond.
View GitHub Profile
@FDJ-Dash
FDJ-Dash / bash_prompt.sh
Created April 9, 2018 04:09 — 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.