tag:blogger.com,1999:blog-203063759820106893.post7332191207690318990..comments2023-03-25T08:30:26.602-04:00Comments on A Moment of Zen: Setting Up a Multi-Tabbed GNOME-Terminal Development EnvironmentJeffrey Stedfasthttp://www.blogger.com/profile/12271561115384429651noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-203063759820106893.post-85393389112333148122010-02-23T02:19:56.155-05:002010-02-23T02:19:56.155-05:00Thanks for the tip - it was something I was lookin...Thanks for the tip - it was something I was looking for :)KaZJotehttps://www.blogger.com/profile/11149938785954777330noreply@blogger.comtag:blogger.com,1999:blog-203063759820106893.post-2260781868904233042009-07-20T18:57:57.946-04:002009-07-20T18:57:57.946-04:00Aaron: Thank you!
This is awesome!Aaron: <i>Thank</i> you!<br /><br />This is awesome!Jeffrey Stedfasthttps://www.blogger.com/profile/12271561115384429651noreply@blogger.comtag:blogger.com,1999:blog-203063759820106893.post-44198107300468141832009-07-20T18:47:31.445-04:002009-07-20T18:47:31.445-04:00re:
Only one problem, I didn't find a way to m...re:<br /><i>Only one problem, I didn't find a way to move the focus back on the first tab. Do you know a solution for this?</i><br /><br />gnome-terminal has the --active switch you can add after a --tab option to control that.<br /><br />gnome-terminal \<br />--tab --active --working-directory=/cvs/moon --command="$MONO_ENV" \<br />--tab --working-directory=/cvs/moon/test --command="$MONO_ENV"Aaron L.noreply@blogger.comtag:blogger.com,1999:blog-203063759820106893.post-44854567775896959812008-10-15T04:46:00.000-04:002008-10-15T04:46:00.000-04:00You can do similar things using screen and custom ...You can do similar things using screen and custom screenrc files, with all the added persistence and functionality that screen supplies. My screenrc;<BR/><I><BR/>termcapinfo xterm* G0:is=\E[?4l\E>:ti@:te@<BR/>termcapinfo linux me=\E[m:AX<BR/>hardstatus lastline<BR/>hardstatus string '%{= kG} [%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f %t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'<BR/>screen -t local -T xterm -a<BR/>screen -t root -T xterm -a su -<BR/>screen -t piccolo -T xterm -a<BR/>stuff "source p_alias_bsh ^M "<BR/>stuff "cd /qa1/piccolo ^M "<BR/>screen -t ingres -T xterm -a su - ingres<BR/>screen -t temp -T xterm ~/linux_screen<BR/>select 0<BR/></I><BR/>And the linux_screen script, with passwords redacted;<BR/><I><BR/>#!/bin/bash<BR/>sleep 3<BR/>screen -p 1 -X stuff 'XXXXXXX^M'<BR/>screen -p 3 -X stuff 'XXXXXXX^M'<BR/>sleep 1<BR/>screen -p 3 -X stuff '. .loadIIbsh^M'<BR/></I><BR/>Extending that idea with environment variables allows me to generate multi-tabbed testing environments on remote servers with very little typing.<BR/><BR/>Very useful if you work from more than one location, as you can just pick up the session from another system, or if you have connectivity issues, as the screen persists even if you disconnect.alwayslurkinghttps://www.blogger.com/profile/16118142106326931830noreply@blogger.comtag:blogger.com,1999:blog-203063759820106893.post-41600855497033964302008-10-04T16:09:00.000-04:002008-10-04T16:09:00.000-04:00haven't figured that one out either :(haven't figured that one out either :(Jeffrey Stedfasthttps://www.blogger.com/profile/12271561115384429651noreply@blogger.comtag:blogger.com,1999:blog-203063759820106893.post-18870061725163108672008-10-04T15:54:00.000-04:002008-10-04T15:54:00.000-04:00Interesting, I never thought about that and --tab ...Interesting, I never thought about that and --tab is not documented in the man page (at least on Debian).<BR/><BR/>Only one problem, I didn't find a way to move the focus back on the first tab. Do you know a solution for this?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-203063759820106893.post-68303815134142324722008-10-03T13:45:00.000-04:002008-10-03T13:45:00.000-04:0017:40 <@cj> jeff: very nice. when I start r...17:40 <@cj> jeff: very nice. when I start running linux on my dev machine again (oh, please, soon!) I'll use that :)C.J. Adams-Collierhttps://www.blogger.com/profile/13555716613127948038noreply@blogger.com