Operating System - HP-UX
1833062 Members
2909 Online
110049 Solutions
New Discussion

Re: Showing Servername on terminal window title

 
Shivkumar
Super Advisor

Showing Servername on terminal window title

Hi,

I am using bash shell and use hummingbird connectivity 10 to connect to remove unix servers.
I need to show the servername on the title of my terminal window.

What line i need to put in my .bashrc file ?

Thanks,
Shiv
3 REPLIES 3
Christian Tremblay
Trusted Contributor

Re: Showing Servername on terminal window title

Try dtterm -name
for more options check
man dtterm

Chris
Paul Sperry
Honored Contributor

Re: Showing Servername on terminal window title

I like to see the hostname and pwd on my windows too. Here's what I have

# Label the top of the window
function wlabel {
typeset string
if [ $# != 1 ] ; then
print "Usage: $0
Jeremy Finn
New Member

Re: Showing Servername on terminal window title

I'm not a Hummingbird user, but this should work:

case $TERM in
xterm*)
PS1="\[\033]0;\h \007\]bash\\$ "
;;
*)
PS1="bash\\$ "
;;
esac

The Xterm-title Howto on TLDP is a very good resource for addtional information.