[CentOS] GNU Screen Macro?

2009-02-23 Thread Sean Carolan
Anyone know if this is possible with GNU screen? I would like to have a macro or keyboard shortcut whereby the following actions are performed: 1. Open new screen window (CTRL-A C) 2. ssh to some $host 3. Rename current screen as $host (CTRL-A A $host) I can see that typing screen while

Re: [CentOS] GNU Screen Macro?

2009-02-23 Thread Don Harper
Under bash, I have a function defined like so: function ss () { screen -t $1 ssh $* } Then, I simply type: ss hostname If I need to pass any options, then I simply stick it on the end, and the resulting screen window is named the hostname. If you do not want the fqdn, then use the

Re: [CentOS] GNU Screen Macro?

2009-02-23 Thread Sean Carolan
On Mon, Feb 23, 2009 at 11:53 AM, Don Harper d...@duckland.org wrote: Under bash, I have a function defined like so: function ss () { screen -t $1 ssh $* } Then, I simply type: ss hostname Nice, this is helpful. I used ssc instead because there appears to be a built in ss command.