Re: Dynamic Title

2009-06-17 Thread Brian Kroth
rc, .screenrc and preeexec.bash over to >the remote system, so the files are identical, but as to why this wont >work is eluding me. How can the fact that i come from a remote host, with >the same setting, be in the way of sending the dynamic title? Can any one >shed some light on

Re: Dynamic Title

2009-06-09 Thread Leen Smit
screen server to achieve dynamic title. in .bashrc : PROMPT_COMMAND='if [ $TERM = "screen" ]; then printf "\033k${HOSTNAME%%.*}\033\\" ; fi' in .ssh/config : # this won't work unless your screen server has openssh 5.1 or above host *  PermitLocalCommand   yes  

Re: Dynamic Title

2009-06-03 Thread Asif Iqbal
, System Admin >> >> wrote: >> >>> >> >>> On Tue, 2 Jun 2009, Asif Iqbal wrote: >> >>> >> >>>> On Tue, Jun 2, 2009 at 4:44 PM, Dan Mahoney, System Admin >> >>>> wrote: >> >>

Re: Dynamic Title

2009-06-03 Thread Brian Kroth
ue, 2 Jun 2009, Asif Iqbal wrote: > >>> > >>>> On Tue, Jun 2, 2009 at 4:44 PM, Dan Mahoney, System Admin > >>>> wrote: > >>>>> > >>>>> On Tue, 2 Jun 2009, Asif Iqbal wrote: > >>>>> > >>>&g

Re: Dynamic Title

2009-06-02 Thread Asif Iqbal
On Tue, Jun 2, 2009 at 4:44 PM, Dan Mahoney, System Admin >>>> wrote: >>>>> >>>>> On Tue, 2 Jun 2009, Asif Iqbal wrote: >>>>> >>>>>> This is what I have done on the screen server to achieve dynamic >>>>

Re: Dynamic Title

2009-06-02 Thread Dan Mahoney, System Admin
server to achieve dynamic title. in .bashrc : PROMPT_COMMAND='if [ $TERM = "screen" ]; then printf "\033k${HOSTNAME%%.*}\033\\" ; fi' in .ssh/config : # this won't work unless your screen server has openssh 5.1 or above host * PermitLocalCommand yes LocalCom

Re: Dynamic Title

2009-06-02 Thread Asif Iqbal
This is what I have done on the screen server to achieve dynamic title. >>>> >>>> in .bashrc : >>>> >>>> PROMPT_COMMAND='if [ $TERM = "screen" ]; then printf >>>> "\033k${HOSTNAME%%.*}\033\\" ; fi' >>>>

Re: Dynamic Title

2009-06-02 Thread Dan Mahoney, System Admin
On Tue, 2 Jun 2009, Asif Iqbal wrote: On Tue, Jun 2, 2009 at 4:44 PM, Dan Mahoney, System Admin wrote: On Tue, 2 Jun 2009, Asif Iqbal wrote: This is what I have done on the screen server to achieve dynamic title. in .bashrc : PROMPT_COMMAND='if [ $TERM = "screen" ]; the

Re: Dynamic Title

2009-06-02 Thread Asif Iqbal
On Tue, Jun 2, 2009 at 4:44 PM, Dan Mahoney, System Admin wrote: > On Tue, 2 Jun 2009, Asif Iqbal wrote: > >> This is what I have done on the screen server to achieve dynamic title. >> >> in .bashrc : >> >> PROMPT_COMMAND='if [ $TERM = "screen"

Re: Dynamic Title

2009-06-02 Thread Dan Mahoney, System Admin
On Tue, 2 Jun 2009, Asif Iqbal wrote: This is what I have done on the screen server to achieve dynamic title. in .bashrc : PROMPT_COMMAND='if [ $TERM = "screen" ]; then printf "\033k${HOSTNAME%%.*}\033\\" ; fi' in .ssh/config : # this won't work unless yo

Re: Dynamic Title

2009-06-02 Thread Asif Iqbal
This is what I have done on the screen server to achieve dynamic title. in .bashrc : PROMPT_COMMAND='if [ $TERM = "screen" ]; then printf "\033k${HOSTNAME%%.*}\033\\" ; fi' in .ssh/config : # this won't work unless your screen server has openssh 5.1 or above

Re: Dynamic Title

2009-05-31 Thread Michael Grant
On Mon, Jun 1, 2009 at 05:47, Asif Iqbal wrote: > On Thu, May 28, 2009 at 5:25 PM, Alan Young wrote: >> On Wed, May 27, 2009 at 20:17, Asif Iqbal wrote: >>> How do I change the title of a screen window (tab) dynamically, to >>> match the hostname I ssh to ? I do this as follows: in .screenrc:

Re: Dynamic Title

2009-05-31 Thread Asif Iqbal
On Thu, May 28, 2009 at 5:25 PM, Alan Young wrote: > On Wed, May 27, 2009 at 20:17, Asif Iqbal wrote: >> How do I change the title of a screen window (tab) dynamically, to >> match the hostname I ssh to ? > > I created a file of aliases for all of the servers I connect to: > > alias server='echo

Re: Dynamic Title

2009-05-28 Thread Alan Young
On Wed, May 27, 2009 at 20:17, Asif Iqbal wrote: > How do I change the title of a screen window (tab) dynamically, to > match the hostname I ssh to ? I created a file of aliases for all of the servers I connect to: alias server='echo -e "\ekservername\e\\" && ssh server && echo -e "\ekbash\e\\"

Dynamic Title

2009-05-27 Thread Asif Iqbal
How do I change the title of a screen window (tab) dynamically, to match the hostname I ssh to ? so ctrl-a c; ssh hostname and title now says bash. I read "Dynamic Titles" of screen's user manual, but not sure how to apply that in my case. A complete example with ssh would really help me move f