“Note – to use any of these prompts, you can copy &
paste the “PS1=” line directly into your terminal. To make the
change permanent, paste the line to the end of your ~/.bashrc
file.“1. Show Happy face upon successful execution This prompt is
probably the most amusing one on the list, but remains useful. The
idea is that as long as your commands execute successfully, your
prompt shows a happy face. Any time a command fails, it shows a sad
face instead.”
8 Useful and Interesting Bash Prompts
By
Get the Free Newsletter!
Subscribe to Developer Insider for top news, trends, & analysis