screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to cd in .screenrc?


From: Kenichi Nakamura
Subject: Re: how to cd in .screenrc?
Date: Wed, 30 Jan 2008 10:08:06 -0800

one thing i've noticed when using custom screenrcs and they chdir is that i have to give -c the *full path* to the screenrc i want. otherwise, when i detach and later try to reattach, i get an error saying "relative/path/to/rc not found" and screen dies.

On Jan 30, 2008, at 2:21 AM, address@hidden wrote:

try in .screenrc

chdir ~/enlace
screen -t enlace
chdir  'other/dir'
screen -t other_dir

You can also put this into a separate file and source it from the main
.screenrc using

source 'alternate.screenrc

On 29/01/2008, Sonia Hamilton <address@hidden> wrote:
I have different .screenrc's for different development environments
(which I start up using screen -c .screenrc_foo). For each terminal I
create in .screenrc, how do I change directories, so each terminal
starts in the directory I specify?

I've tried lines like this, but I'm getting errors:

screen -t "enlace" cd ~/enlace
screen -t "enlace2" cdenlace.sh

(where cdenlace.sh is in my path, and contains the command "cd
~/enlace").

--
Sonia Hamilton
blog: http://SoniaHamilton.wordpress.com



_______________________________________________
screen-users mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/screen-users



_______________________________________________
screen-users mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/screen-users







reply via email to

[Prev in Thread] Current Thread [Next in Thread]