[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting window title in ssh'ed host

From: Trent W. Buck
Subject: Re: Setting window title in ssh'ed host
Date: Thu, 06 Nov 2008 23:59:10 +1100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Malte Skoruppa <address@hidden> 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 semicolons are also unnecessary because newline acts as a
command delimiter.  Have a nice day.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]