Discussion:
starting directory of new panes
Mark Volkmann
2014-10-19 23:20:55 UTC
Permalink
It used to be that when I opened a new pane in tmux it would be in the
directory of the pane I was in. Now new panes always start in my home
directory. I don't know what I could have done to change that behavior, but
I prefer the old way. Is there a setting for this?
--
R. Mark Volkmann
Object Computing, Inc.
Thomas Adam
2014-10-19 23:29:48 UTC
Permalink
Post by Mark Volkmann
It used to be that when I opened a new pane in tmux it would be in the
directory of the pane I was in. Now new panes always start in my home
directory. I don't know what I could have done to change that behavior, but
I prefer the old way. Is there a setting for this?
I write release descriptions for a reason:

http://sourceforge.net/p/tmux/tmux-code/ci/master/tree/CHANGES

Note the "Incompatible Changes" section for 1.9

-- Thomas Adam
Mark Volkmann
2014-10-19 23:53:37 UTC
Permalink
Here's what I have in my .tmux.conf file:

bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"

I think according to the release notes that should open the new pane in the
current directory, but it isn't.

I also pressed prefix-: and entered the following:
split-window -h -c "#{pane_current_path}"
That also opened a new pane, but not in the current directory.
Post by Thomas Adam
Post by Mark Volkmann
It used to be that when I opened a new pane in tmux it would be in the
directory of the pane I was in. Now new panes always start in my home
directory. I don't know what I could have done to change that behavior,
but
Post by Mark Volkmann
I prefer the old way. Is there a setting for this?
http://sourceforge.net/p/tmux/tmux-code/ci/master/tree/CHANGES
Note the "Incompatible Changes" section for 1.9
-- Thomas Adam
--
R. Mark Volkmann
Object Computing, Inc.
Thomas Adam
2014-10-20 00:03:18 UTC
Permalink
Post by Mark Volkmann
That also opened a new pane, but not in the current directory.
Which platform?

-- Thomas Adam
Mark Volkmann
2014-10-20 00:10:14 UTC
Permalink
Post by Thomas Adam
Post by Mark Volkmann
That also opened a new pane, but not in the current directory.
Which platform?
Mac OS X
J Raynor
2014-10-20 07:11:01 UTC
Permalink
I'm not seeing the problem on OS X. Did you build tmux yourself, or
did you install it via macports, homebrew, or fink?

Check your .profile (or .bash_profile) and see if you've got a "cd"
command in there.

On Sun, Oct 19, 2014 at 7:10 PM, Mark Volkmann
Post by Mark Volkmann
Post by Thomas Adam
Post by Mark Volkmann
That also opened a new pane, but not in the current directory.
Which platform?
Mac OS X
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
tmux-users mailing list
https://lists.sourceforge.net/lists/listinfo/tmux-users
Nathan Schwarz
2014-10-19 23:32:00 UTC
Permalink
That behavior changed a while back.

Here is my workaround:
bind '"' split-window -c "#{pane_current_path}"
bind '%' split-window -h -c "#{pane_current_path}"
bind 'c' new-window -c "#{pane_current_path}"

The only problem here is, that if you open a split or new window from
e.g. man you'll land in /usr/doc/ instead of PWD.

- Nathan
--
/"\ ASCII Ribbon Campaign
\ / - against HTML emails
X - against proprietory attachments
/ \ http://en.wikipedia.org/wiki/ASCII_Ribbon_Campaign
Loading...