mxcl/homebrew — pull request #13283 by iwinux (2012-07-08 19:45:03+00:00)
Title: enable tmux to get current working directory

Patched tmux so that it can create new windows/panes in the same working
directory as the active window instead of using the value of default-path.

This patch adds the implementation of function osdep_get_cwd for Darwin platform (which previously exists as a dummy function). Code is authored and posted by Alex Ernst in the tmux-users mailing list.

I've tested it on Mac OS X 10.7.4 (Lion) with tmux 1.6, and it works as expected.

Reference:

* http://www.mail-archive.com/tmux-users@lists.sourceforge.net/msg02409.html
* http://www.mail-archive.com/tmux-users@lists.sourceforge.net/msg02203.html