Re: [PATCH] cmd_string_parse: use session environment if available

2013-11-29 Thread Matthias Lederhofer
Just found a problem: sourcing the tmux configuration expands the environment variables, too, and I don't see any way that allows escaping. That means ':new-window -c "$PWD"' on the prompt works but binding the same will resolve $PWD when parsing the config, not when pressing the keys. Any recommen

Re: [PATCH] cmd_string_parse: use session environment if available

2013-11-28 Thread Nicholas Marriott
On Thu, Nov 28, 2013 at 10:24:19AM +, Matthias Lederhofer wrote: > Just found a problem: sourcing the tmux configuration expands the > environment variables, too, and I don't see any way that allows > escaping. That means ':new-window -c "$PWD"' on the prompt works but > binding the same will r

[PATCH] cmd_string_parse: use session environment if available

2013-11-28 Thread Matthias Lederhofer
This allows to use environment variables from the current session in command strings, e.g. to create a new window starting in $PWD. --- cfg.c|2 +- cmd-command-prompt.c |3 ++- cmd-confirm-before.c |3 ++- cmd-if-shell.c |3 ++- cmd-string.c | 38 +