Skip to content

Instantly share code, notes, and snippets.

View initdude's full-sized avatar
🎯
Focusing

Sohrab.glp initdude

🎯
Focusing
  • NRDC
  • Tehran
View GitHub Profile
@initdude
initdude / best_bash_prompt.sh
Created November 18, 2022 12:27 — 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