Well pane_start_path will always be where the pane started, but if it goes to / 
sounds like it isn't working. 

-------- Original message --------
From: Matteo Cavalleri <shivabra...@gmail.com> 
Date: 28/02/2014  08:54  (GMT+00:00) 
To: Nicholas Marriott <nicholas.marri...@gmail.com> 
Cc: tmux-users@lists.sourceforge.net 
Subject: Re: problem with new-window and current directory 
 
btw I just discovered that with pane_start_path the new window opens on /
even if I'm just at the shell prompt




On Fri, Feb 28, 2014 at 9:53 AM, Matteo Cavalleri <shivabra...@gmail.com>wrote:

> it doesn't work, the new shell still opens on /
>
>
>
>
> On Fri, Feb 28, 2014 at 8:02 AM, Nicholas Marriott <
> nicholas.marri...@gmail.com> wrote:
>
>> I think there might be pane_start_path as well which would work for you.
>>
>>
>>
>> -------- Original message --------
>> From: Matteo Cavalleri <shivabra...@gmail.com>
>> Date: 27/02/2014 22:28 (GMT+00:00)
>> To: Nicholas Marriott <nicholas.marri...@gmail.com>
>> Cc: tmux-users@lists.sourceforge.net
>> Subject: Re: problem with new-window and current directory
>>
>>
>> well, from my point of view (and the way i usually work) that won't be a
>> problem at all, and in any case I think it would still better the be back
>> at "/the/dir/I/was/in/before/running/whatever" rather than being put on "/"
>> and then having to manually cd back to the correct dir
>>
>> anyway I understand other people might think different, but I suppose
>> that it could still be configurable, e.g.
>>
>> bind-key c new-window -c '#{pane_current_path} -> current behavior
>> bind-key c new-window -c '#{$PWD} -> suggested behavior
>>
>> or maybe fallback to $PWD if the process directory is empty (not sure if
>> Thomas Adam meant that when he talked about subshells)
>>
>>
>>
>> > But what if the process changes the directory? We can tell the pwd where
>> > we start the command but not if it changes it.
>> >
>> >
>> > On Thu, Feb 27, 2014 at 11:14:42PM +0100, Matteo Cavalleri wrote
------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to