Skip to content

Instantly share code, notes, and snippets.

View bradynpoulsen's full-sized avatar

Bradyn Poulsen bradynpoulsen

View GitHub Profile
@bradynpoulsen
bradynpoulsen / .bashrc
Last active August 29, 2015 13:56
Bash :: Exit status indicator in command line prompt
# This is a nearly identical copy and paste how I have my status indicators work in terminal
export PROMPT_COMMAND=prompt
function prompt {
local EXIT=$? # This MUST be first to get exit code of last command
# Text Colors, I chose to use tput to get my colors
local BL=`tput setaf 0` # Black
local RD=`tput setaf 1` # Red