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:
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
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
: 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() {
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
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
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.
>
-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
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.
-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
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
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 "$
* 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
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
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
15 matches
Mail list logo