-----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-----


_______________________________________________
screen-users mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to