[ltp] SXGA+ versus XGA resolution, any suggestions?
Richard Neill
linux-thinkpad@linux-thinkpad.org
Sat, 13 Aug 2005 17:24:34 +0100
JP Renaud wrote:
> However, I find hard to use Konsole's tabs, mainly because I like being able
> to see different terminals at once... So OK ;-)
Try putting the following into your bashrc. It makes the konsole tabs
vastly more useful! Even more so, if you have the same on other
machines, and log in via ssh.
---- ~/.bashrc ---------------------
#Set up a useful session name in Konsole. Include hostname for
#remote logins (where $DISPLAY != :0).
#The first part: \[\e]30;XXXX\a\] sets the session name to XXXX;
#the second part: \[\e]0;\a\] sets the window title to "" (to which
#the session name is then appended anyway)
if test "$DISPLAY"; then
if [ "$DISPLAY" == ":0" -o "$DISPLAY" == ":0.0" ];then
export PS1=$PS1"\[\e]30;\W/ \a\]\[\e]0;\a\]"
else
export PS1=$PS1"\[\e]30;\h:\W/ \a\]\[\e]0;\a\]"
fi
fi
-------------------------------------------
------- /root/.bashrc ----------------------------
#Set up a useful shell name in Konsole. Use * for root, and
#include hostname for remote logins (where $DISPLAY != :0)
if test "$DISPLAY"; then
if [ "$DISPLAY" == ":0" -o "$DISPLAY" == ":0.0" ];then
export PS1=$PS1"\[\e]30;*\W/ \a\]\[\e]0;\a\]"
else
export PS1=$PS1"\[\e]30;*\h:\W/ \a\]\[\e]0;\a\]"
fi
fi
-------------------------------------------
Regards
Richard