mhulse / dotfizzles

Fo shizzle … Dotfizzles in the hizzay dirz!
15 stars 4 forks source link

Customizing the bash prompt to show a tick or a cross based on the exit status of the last command #206

Open mhulse opened 5 years ago

mhulse commented 5 years ago

https://fazlearefin.blogspot.com/2014/06/customizing-bash-prompt-to-show-tick-or.html

mhulse commented 5 years ago
if [ $? = 0 ]; then echo "✔"; else echo "✘"; fi

Will just have to add the above to my $PS1 and colorize it using my colors.

mhulse commented 5 years ago

This is cool, but is blocking me from busting out other, easier, issues. Putting in later milestone.