Re: Get current working directory from another screen window

2011-06-24 Thread Artur Skonecki
On Fri, 24 Jun 2011, Michael Parson wrote: -- begin chscdir -- #!/bin/sh screen -X msgwait 0 screen -X at "$1" stuff "" screen -X at "$1" stuff "pwd > $TMPDIR/buffer ^M" screen -X readbuf screen -X stuff "cd " screen -X paste . screen -X removebuf screen -X msgwait 4 -- end chscdir -- If on

Re: Get current working directory from another screen window

2011-06-24 Thread Michael Parson
On Wed, 22 Jun 2011, Tomasz Muras wrote: Hello, I'm wondering if something like this would be possible: I would like to quickly switch to the same current working directory as in another screen window. Would it be possible to read cwd of another window? It takes a bit of screen scripting, but

Re: Get current working directory from another screen window

2011-06-24 Thread David Collins
On Wed, Jun 22, 2011 at 10:38 AM, Tomasz Muras wrote: > Hello, > > I'm wondering if something like this would be possible: > I would like to quickly switch to the same current working directory > as in another screen window. Would it be possible to read cwd of > another window? if you are not ru

Re: Get current working directory from another screen window

2011-06-23 Thread Jostein Berntsen
On 23.06.11,14:25, Sadrul Habib Chowdhury wrote: > On Wed, Jun 22, 2011 at 10:38 AM, Tomasz Muras wrote: > > Hello, > > > > I'm wondering if something like this would be possible: > > I would like to quickly switch to the same current working directory > > as in another screen window. Would it be

Re: Get current working directory from another screen window

2011-06-23 Thread Sadrul Habib Chowdhury
On Wed, Jun 22, 2011 at 10:38 AM, Tomasz Muras wrote: > Hello, > > I'm wondering if something like this would be possible: > I would like to quickly switch to the same current working directory > as in another screen window. Would it be possible to read cwd of > another window? The windows in scr

Get current working directory from another screen window

2011-06-23 Thread Tomasz Muras
Hello, I'm wondering if something like this would be possible: I would like to quickly switch to the same current working directory as in another screen window. Would it be possible to read cwd of another window? cheers, Tomek ___ screen-users mailing