Hi Josh,

Josh Triplett <j...@joshtriplett.org> writes:

> When creating a new terminal, I most frequently want it to start in the
> same working directory as the current terminal.  gnome-terminal has this
> feature, and I find it highly preferable to always starting new
> terminals in my home directory.  Would you consider adding an option for
> this?

The usual way to achieve this in tmux is to create the new window using
'tmux neww' (or 'tmux splitw') from the first shell. The tmux client will
pass its working directory to the server, and the process in the new
window/pane will be created there.

The working directory for windows created using keys is taken from the
'default-path' option. I guess a special value 'inherit' could be added to
get the same behavior, but getting the current working directory of a
given process "from the outside" is non-portable (it involves /proc in
Linux).

Thanks,
-- 
Romain Francoise <rfranco...@debian.org>
http://people.debian.org/~rfrancoise/



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to