[prev in list] [next in list] [prev in thread] [next in thread]
List: openbsd-misc
Subject: Re: tmux and current directory
From: Jiri B <jirib () devio ! us>
Date: 2012-09-30 20:22:29
Message-ID: 20120930202229.GA24540 () wolfman ! devio ! us
[Download RAW message or body]
On Sun, Sep 30, 2012 at 06:24:08PM +0000, Stuart Henderson wrote:
> On 2012-09-30, Jan Stary <hans@stare.cz> 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 <prefix>-c to open a new window normally (working
> directory being the same as tmux was started in) and <prefix>-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.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic