Loading
Home ›
Customized Bash Prompts with the PS1 Variable
Trending Topics
| OpenLDAP Everywhere Reloaded, Part I | May 23, 2012 |
| Chemistry the Gromacs Way | May 21, 2012 |
| Make TV Awesome with Bluecop | May 16, 2012 |
| Hack and / - Password Cracking with GPUs, Part I: the Setup | May 15, 2012 |
| An Introduction to Application Development with Catalyst and Perl | May 14, 2012 |
| Cryptocurrency: Your Total Cost Is 01001010010 | May 09, 2012 |
- A Statistical Approach to the Spam Problem
- Validate an E-Mail Address with PHP, the Right Way
- OpenLDAP Everywhere Reloaded, Part I
- Strip DRM from WMV File
- Linux--The Internet Appliance?
- Eagles BBS
- The Linux Signals Handling Model
- Boot with GRUB
- Streaming MPEG-4 with Linux
- Chapter 16: Ubuntu and Your iPod
- Editorial Standards?
4 hours 36 sec ago - Great one
5 hours 35 min ago - Common form in many
5 hours 56 min ago - Awsome
10 hours 59 min ago - Euro 2012 Coupon Codes - Get 20% Off Pavtube TiVo Converter
3 days 9 hours ago - Euro 2012 Big Sale: 20% Off Instant Savings on TiVo Converter
3 days 9 hours ago - MakeMKV works as well, though
3 days 9 hours ago - Euro 2012 Big Sale: 20% Off Instant Savings on TiVo Converter
3 days 10 hours ago - Awesome
4 days 8 hours ago - Who worries approx the
4 days 10 hours ago





Comments
I can't get it to remember
I can't get it to remember the variable!
Best bash prompt
\w `if [ $? = 0 ]; then echo :\\); else echo :\\(; fi`
Sets your prompt to a smiley if the last command succeeded.
Sets a frowny if the previous command's return code is anything other than 0
~ :) true
~ :) false
~ :( true
~ :)
How about including the link?
It's http://pastebin.com/f2309fd10.
Suggestion for tutorial...
How about a demo/tutorial on changing the title bar on an Xterm window. Perhaps with pointers to documentation and settings that can be used.
This would be useful if you have serveral windows open on various servers and need to identify them quickly.
The best Bash prompt?
Use your favourite search engine to look for smiley bash prompt.