Quantcast
Channel: xterm – Securitron Linux blog.
Viewing all articles
Browse latest Browse all 9

Nice bash shell prompt examples.

$
0
0
This is a very simple, but nice shell prompt. PS1="\[\033[38;5;49m\]\w\[$(tput sgr0)\]\[\033[38;5;15m\]:\[$(tput sgr0)\]\[\033[38;5;43m\]\h\[$(tput sgr0)\]\[\033[38;5;15m\]@\[$(tput sgr0)\]\[\033[38;5;39m\]\u\[$(tput sgr0)\]\[\033[38;5;15m\]:\$?:\\$\[$(tput sgr0)\]" This is what it looks like. /home/robert/Desktop:mycomputer@mario:0:$ Another nice bash shell prompt. PS1="-\t-- \u@\h [\w]\$ " It looks like this. Not as good, but simpler than the above example. -12:01:11-- jason@unknown [~]$ Put this in your .bashrc to create …

Viewing all articles
Browse latest Browse all 9

Trending Articles