This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: bash window title - can I add hostname to it?


> > > to include hostname as well as the current directory it displays now.
> >
> > export PS1="\[\e]2;\h:\w\007\e[1;36m\]\h [\[\e[1;35m\]\w\[\e[1;36m\]] \u
$
> > \[\e[1;33m\]"
> >
> > (Note that you need to have such a prompt on every computer you telnet
to,
> > as well -- they're the ones that send the ANSI sequences to your
terminal
> > client to set the title.)
> 
> I suppose you can alias telnet, rsh and the likes to change title before
> connecting to the remote box.

If you did that, then the first time the remote box attempted to update the
directory in the title (part of the user's existing functionality), then the
hostname would be presumably overwritten.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]