Re: tmux and current directory
On Sun, Sep 30, 2012 at 06:24:08PM +, Stuart Henderson wrote: > On 2012-09-30, Jan Stary wrote: > > On current/i386, tmux seems to open a new shell with the current > > directory being the same as in the window I am opening from. > > > > What that means in particular is that if I run 'man whatever' > > in a tmux window, and open a new windowd ('ctrl-b c' in my case), > > the news shell is opened in /usr/local/man. Is that inteded? > > Yes. I dislike this behaviour by default but I do find it useful > on occasion, so I use this: > > set -g default-path . > bind C new-window -c "" > > this lets me do -c to open a new window normally (working > directory being the same as tmux was started in) and -C for > the new behaviour (i.e. if I'm somewhere in a deep path and don't > want to cd manually), which works well for me. Thanks! j.
Re: tmux and current directory
On 2012-09-30, Jan Stary wrote: > On current/i386, tmux seems to open a new shell with the current > directory being the same as in the window I am opening from. > > What that means in particular is that if I run 'man whatever' > in a tmux window, and open a new windowd ('ctrl-b c' in my case), > the news shell is opened in /usr/local/man. Is that inteded? Yes. I dislike this behaviour by default but I do find it useful on occasion, so I use this: set -g default-path . bind C new-window -c "" this lets me do -c to open a new window normally (working directory being the same as tmux was started in) and -C for the new behaviour (i.e. if I'm somewhere in a deep path and don't want to cd manually), which works well for me.
Re: tmux and current directory
This seems like intended behavior. If you want to change this you might investigate the default-path option. On Sep 30, 2012 1:11 PM, "Jan Stary" wrote: > On current/i386, tmux seems to open a new shell with the current > directory being the same as in the window I am opening from. > > What that means in particular is that if I run 'man whatever' > in a tmux window, and open a new windowd ('ctrl-b c' in my case), > the news shell is opened in /usr/local/man. Is that inteded? > > Jan
Re: tmux and current directory
more of a case of man gratuitously changing cwd shells spawned by $PAGER also have a cwd of the base of the man path On Sun, Sep 30, 2012 at 12:38 PM, Jan Stary wrote: > On current/i386, tmux seems to open a new shell with the current > directory being the same as in the window I am opening from. > > What that means in particular is that if I run 'man whatever' > in a tmux window, and open a new windowd ('ctrl-b c' in my case), > the news shell is opened in /usr/local/man. Is that inteded? > > Jan
tmux and current directory
On current/i386, tmux seems to open a new shell with the current directory being the same as in the window I am opening from. What that means in particular is that if I run 'man whatever' in a tmux window, and open a new windowd ('ctrl-b c' in my case), the news shell is opened in /usr/local/man. Is that inteded? Jan