> I did not submit a patch because I could not get `tmux splitw -c 
> '#{pane_current_path}'` to work properly on Cygwin. I'd love to say that the 
> patch submitted by J Raynor worked for me though, but I'm still always 
> getting new panes/windows opening at `~`. I git-pulled the latest master 
> branch this morning and did a `./autogen.sh`, `./configure`, then `make -j && 
> make install`. Am I missing some configuration step to get the ` -c 
> start-directory` functionality working?

When you don't specify a command when creating a new pane, tmux will
start a login shell.  So, if your login shell is /bin/sh, then it
execs /bin/sh with an argv[0] of "-sh".  On the non-cygwin systems I
have access to, this starts a shell in whatever directory it was
execed from.  But on cygwin, the login shell appears to always put you
in your homedir.

Tmux is doing a chdir to your -c argument, but the login shell then
changes to your homedir.  If you do "tmux splitw -c /some/path
YourSHELL" you should see that tmux is honoring the -c argument.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to