Here is another cool thing: you can have the prompt set the title of the
xterm for you.
This way, in the taskbar i see the path 1st, so when there's a bunch of
them open, i know which is which.


#PS1="\[\033]0;\w: \u\007\]   <-- sets title  ||||   sets prompt -->   
#\[\033[33m\]\w \$ "

if test "$(tty | grep -c /dev/pts/)" != "0" ; then    # if in X11
    PS1="\[\033]0;\w: \u\007\]\[\033[33m\]\w \$ \[\033[0m\]"
else
    PS1="\[\033[32m\]\w \$ \[\033[0m\]"               # if in text mode,
there is no title
fi

here is the explanation: http://www.tldp.org/HOWTO/Xterm-Title.html 


-- 
Mandrake HowTo's & More:          http://twiki.mdklinuxfaq.org

Join the content organization discussion:
http://mandrake.vmlinuz.ca/bin/view/Main/NewIndex

Join the General Wiki Development discussion:
http://mandrake.vmlinuz.ca/bin/view/Main/DevelopingTheMandrakeCommunity#Discussion

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to