A nice bash prompt

Unix — Dillon @ 3:14 pm

Throw this into your /etc/bashrc for all users to pick up this more interesting bash prompt. If you just want to test it out on a single user’s profile, add to ~/.bashrc (at the end is good).

# a ruley rule bash prompt
COLOR1="\[33[1;37m\]"
COLOR2="\[33[0;37m\]"
COLOR3="\[33[1;33m\]"
if [ "$UID" = "0" ];
then
COLOR2="\[33[1;34m\]"
fi
PS1="$COLOR2($COLOR1\u@\h$COLOR2)-($COLOR3\W$COLOR2)\\$ $COLOR1"

0 Comments »

No comments yet.

RSS feed for comments on this post.

Leave a comment

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
(c) 2012 SQUARISM | powered by WordPress with Barecity