Skip to content

Instantly share code, notes, and snippets.

View romanlevin's full-sized avatar

Roman Levin romanlevin

View GitHub Profile
@romanlevin
romanlevin / bash_prompt.sh
Last active May 25, 2022 02:35 — forked from insin/bash_prompt.sh
Set color bash prompt according to active pyenv, 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.