Gnu Screen .screenrc tricks
| 31-Jan-2008 | Posted by Sonia Hamilton under Gnu Screen |
Here’s a variety of tricks I’ve picked up for Gnu screen and .screenrc from the Screen Users Email List
- to have a screen change to a different directory when launched, use the chdir command (not cd):
chdir $HOME/rails
screen -t "rails"
- to change back to a particular screen, after creating a whole lot in .screenrc, and preset the ‘other’ screen:
select 3 (for example)
select 5
- to search backwards in scrollback mode – ?. You can also search forwards with /, but that’s less useful. See samsarin.com for a good explanation of scrollback mode.
Share This
I’ve been trying to figure out this simple task for the last hour. This is the only thing I’ve found that works. Thanks.
Yes the GNU Screen doco is a bit terse on this point :-)
I’ve got some other posts on useful Screen stuff eg sharing sessions, etc: http://www.snowfrog.net/tag/gnu-screen/