too bad :( just curious: why not e.g. evaluate $PWD when executing the command? it seems to be expanded just when the config is loaded and then the value is kept as is.
> The mechanism is not always reliable, not sure there is much we can do about > it. > > > -------- Original message -------- > From: Matteo Cavalleri <shivabra...@gmail.com> > Date: 27/02/2014 21:09 (GMT+00:00) > To: tmux-users@lists.sourceforge.net > Subject: problem with new-window and current directory > > > Hi, i’m using tmux 1.9a on osx and I have the following problem when i create > a new window. > > in my .tmux.config: > > bind-key c new-window -c '#{pane_current_path}’ > > steps to reproduce the problem > > $ cd > $ tmux > $ cd /usr/local > > C-b c -> creates a new window in /usr/local > > $ exit # closes the new window and go back to the first one > $ less /etc/hosts > > C-b c -> creates a new window in /usr/local > > $ exit > $ cat /etc/hosts | less # the pipe is important here > > C-b c -> creates a new window in / > > so when I create a new window with e.g. something piped to less the new > window opens on the root directory, always. On linux I’m compiling tmux from > sources and even with the latest commits I still get this behavior. > Is it fixable somehow? > > thanks in advance! > > > > ------------------------------------------------------------------------------ > Flow-based real-time traffic analytics software. Cisco certified tool. > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > Customize your own dashboards, set traffic alerts and generate reports. > Network behavioral analysis & security monitoring. All-in-one tool. > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > _______________________________________________ > tmux-users mailing list > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users