Re: Setting window title in ssh'ed host

2008-11-07 Thread Malte Skoruppa
neat, too bad that I have solved it by manually setting PS1 on all machines :) -------------- Message: 5 Date: Thu, 06 Nov 2008 11:25:00 +0100 From: Malte Skoruppa <[EMAIL PROTECTED]> Subject: Re: Setting window title in ssh'ed host To: screen-users@gnu.org Message-ID:

Re: Setting window title in ssh'ed host

2008-11-07 Thread Pandurangan R S
33\\" > fi > ' > > Cheers, > > Malte > > Gokdeniz Karadag schrieb: >> >> Hi, in your script, it would be better to revert it back to local hostname >> after ssh finishes. >> >> Both this and LocalCommand seems neat, too bad that I have s

Re: Setting window title in ssh'ed host

2008-11-07 Thread Malte Skoruppa
er to revert it back to local hostname after ssh finishes. Both this and LocalCommand seems neat, too bad that I have solved it by manually setting PS1 on all machines :) -- Message: 5 Date: Thu, 06 Nov 2008 11:25:00 +0100 From: Malte Skoruppa <[EMAIL PROTE

Re: Setting window title in ssh'ed host

2008-11-06 Thread Gokdeniz Karadag
: Malte Skoruppa <[EMAIL PROTECTED]> Subject: Re: Setting window title in ssh'ed host To: screen-users@gnu.org Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi, I solved the problem in bash by editing my ~/.profile file: ssh() {

Re: Setting window title in ssh'ed host

2008-11-06 Thread Trent W. Buck
Malte Skoruppa <[EMAIL PROTECTED]> writes: > I solved the problem in bash by editing my ~/.profile file: > > ssh() { > args=$@ > echo -ne "\033k${args##* }\033\\"; > /usr/bin/ssh "$@"; You don't need to hard-code the path to ssh if you change this line to command ssh "$@" the trailing semic

Re: Setting window title in ssh'ed host

2008-11-06 Thread Malte Skoruppa
Hi, I solved the problem in bash by editing my ~/.profile file: ssh() { args=$@ echo -ne "\033k${args##* }\033\\"; /usr/bin/ssh "$@"; } It"s a rather simple script, whenever you call ssh, first this script is executed, which calls the real ssh in the end, with the same arguments. Before it doe

Re: Setting window title in ssh'ed host

2008-11-05 Thread Robin Lee Powell
On Wed, Nov 05, 2008 at 10:50:31PM -0800, Micah Cowan wrote: > I don't really see how that does what the thread's talking about; > namely, set the window title to the hostname that's connected by > ssh. You set your remote shell's PS1 to tell screen to set the title to $(uname -n) or whatever. >

Re: Setting window title in ssh'ed host

2008-11-05 Thread Micah Cowan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robin Lee Powell wrote: > On Wed, Nov 05, 2008 at 02:39:13PM -0800, Micah Cowan wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Gokdeniz Karadag wrote: >>> Hi, >>> >>> This is more like a story, I am trying to automatically set >>> "G

Re: Setting window title in ssh'ed host

2008-11-05 Thread Robin Lee Powell
On Wed, Nov 05, 2008 at 02:39:13PM -0800, Micah Cowan wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Gokdeniz Karadag wrote: > > Hi, > > > > This is more like a story, I am trying to automatically set > > "GNU screen window title" equal to the hostname that is > > connected by ssh.

Re: Setting window title in ssh'ed host

2008-11-05 Thread Micah Cowan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gokdeniz Karadag wrote: > Hi, > > This is more like a story, I am trying to automatically set "GNU screen > window title" equal to the hostname that is connected by ssh. This has been a recurring need, solved in various ways. Thomas Adam just point

Re: Setting window title in ssh'ed host

2008-07-17 Thread Gokdeniz Karadag
Christian Ebert demis ki:: * Gokdeniz Karadag on Saturday, July 12, 2008 at 03:10:00 +0300 Setting the following in all machines achieves what I want, it sets screen title to hostname, PROMPT_COMMAND='echo -n -e "\033k${HOSTNAME}\033\\"' but when I connect to the machine out of screen, It print

Re: Setting window title in ssh'ed host

2008-07-17 Thread Gokdeniz Karadag
Hi, First of all thanks for your answer. I have solved the question -- or the question suddenly disappeared :) My replies are between quotations below. Trent W. Buck demis ki:: ... Note that the "type" builtin isn't portable, if you use .bash_profile you can instead just use case "$

Re: Setting window title in ssh'ed host

2008-07-15 Thread Christian Ebert
* Gokdeniz Karadag on Saturday, July 12, 2008 at 03:10:00 +0300 > Setting the following in all machines achieves what I want, it sets > screen title to hostname, > PROMPT_COMMAND='echo -n -e "\033k${HOSTNAME}\033\\"' > but when I connect to the machine out of screen, It prints the hostname > liter

Re: Setting window title in ssh'ed host

2008-07-14 Thread Trent W. Buck
On Sat, Jul 12, 2008 at 03:10:00AM +0300, Gokdeniz Karadag wrote: > This is more like a story, I am trying to automatically set "GNU > screen window title" equal to the hostname that is connected by ssh. In my .profile, which exists on all my machines and is evaluated for all interactive logins (i

Setting window title in ssh'ed host

2008-07-14 Thread Gokdeniz Karadag
Hi, This is more like a story, I am trying to automatically set "GNU screen window title" equal to the hostname that is connected by ssh. I am using the following for hardstatus, which presents a list of all open windows hardstatus lastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<" Also my .scree