Skip to content

Instantly share code, notes, and snippets.

@piyush117
piyush117 / best_bash_prompt.sh
Created March 28, 2020 07:38 — forked from ckabalan/best_bash_prompt.sh
The Best Bash Prompt
# Bash History Replacement Script
# Author: Caesar Kabalan
# Last Modified: June 6th, 2017
# Description:
# Modifies the default Bash Shell prompt to be in the format of:
# [CWD:COUNT:BRANCH:VENV]
# [USER:HOSTNAME] _
# Where:
# CWD - Current working directory (green if last command returned 0, red otherwise)
# COUNT - Session command count