[Top][All Lists]

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

Re: new window with same pwd

From: Stephane Chazelas
Subject: Re: new window with same pwd
Date: Wed, 10 Aug 2011 09:31:44 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

2011-08-09 13:52:37 -0700, Neuberger, Sheldon:
> Hello,
> Is there a way to open a new window with the same pwd as the current window?

By window pwd, I suppose you mean the current working directory
of the process started in the current window. (from the
pwd command standing for print working directory).

All you need to do is run the "screen" command with $STY
refering to the screen session in the same directory as the one
you want.

If the application in the current window is a shell, running
"screen" from there would usually do it.

It may not work if the STY variable has been unset or if the
process is running as a different username.


reply via email to

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