Re: How to have each window in a different directory

Amadeusz Sławiński <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <[email protected]>
On Sun, 8 Jan 2017 17:52:49 -0500 (EST)
"Dan D." <[email protected]> wrote:

> Hello,
> 
> I create multiple windows in screenrc.  What I want to do is when
> going to a window it opens in a directory of my selection without
> first doing a "cd" to that directory.
> 
> For example I have a window named "mail" in screenrc, when I choose
> that window by its number "2", the working directory will be an the
> existing "mail" directory.
> 
> Hope that is clear, thanks.
> 
> XB
> 
> _______________________________________________
> screen-users mailing list
> screen-users-mXXj517/[email protected]
> https://lists.gnu.org/mailman/listinfo/screen-users

Hi,

what you want to use in your .screenrc is 'chdir' command, for example:

chdir /home/user/somemaildir
screen mail
chdir /home/user/musicdir
screen musicplayer

Cheers,
Amadeusz
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.