Friday, September 24, 2010

favorite shell prompt in BASH

 

Here’s my typical prompt in mintty/cygwin:

[ambars@mintty 11:54:28 ~] $

 

And here’s the code: simply append to ~/.bashrc:

export PS1="[\u@mintty \e[0;33m\t\e[m \w] \$ "

Source:
Bash Shell PS1: 10 Examples to Make Your Linux Prompt like Angelina Jolie

No comments: