Set PS1 to update your terminal title

You must use bash for this one to work, when you switch users, your title bar will change:

PS1=”\[\033]0;\u@\h: \w\007\]”‘$PWD> ‘;

Add this to /etc/profile and it will get called by everyone

If you are using X11, xdpyinfo gives you lots of info, but this doesn’t work on cygwin

Leave a Reply

Your email address will not be published. Required fields are marked *