[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: start screen in another directory
From: |
Micah Cowan |
Subject: |
Re: start screen in another directory |
Date: |
Tue, 25 Sep 2007 12:52:17 -0700 |
User-agent: |
Thunderbird 1.5.0.13 (X11/20070824) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Sivaram Neelakantan wrote:
> Hello,
>
> when I launch screen with
>
> screen -t tex 'cd /usr/local/tex' in my .screenrc, I get the message
> 'cannot exec cd; no such file or directory
>
> All I want to do is start screen with different default directories.
> How do I do that?
One quick way to do that would be to do:
$ ( cd /usr/local/tex && screen -t tex )
Otherwise, you could set up a .screenrc file with contents like:
shelltitle tex
chdir /usr/local/tex
You could call it ~/screenrc-tex and invoke screen like:
$ screen -c ~/screenrc-tex
.
Note that "cd" is always a shell builtin, since it tells the "parent"
shell to change its directory. No program can change the working
directory of a different process; that's why screen complained about cd
not existing: it doesn't.
- --
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer...
http://micah.cowan.name/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFG+Wbx7M8hyUobTrERCAYUAJsGRoI3N/04uR2r6YiRNIQJ0E73pACfVmO/
b2Xfremrmm7DIV6gQy+pjTQ=
=Iywh
-----END PGP SIGNATURE-----