Skip to content

Instantly share code, notes, and snippets.

View tasugo's full-sized avatar

Manuel Gómez tasugo

View GitHub Profile
@bradsokol
bradsokol / bash_prompt.sh
Last active January 6, 2024 07:36 — forked from insin/bash_prompt.sh
Set color bash prompt according to active virtualenv, Git, Mercurial or Subversion 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, Mercurial or Subversion repository
# * the return value of the previous command
# * the fact you just came from Windows and are used to having newlines in
# your prompts.