Replies: 2 comments 5 replies
-
I'm OK with this if you want to add it but I'd use |
Beta Was this translation helpful? Give feedback.
-
Any punctuation could be included in an env var value. Note that a directory path can also contain colons and semicolons. Which is why you need to define an encoding that provides for disambiguating whether the character is part of a env var value or separates two env vars. Note that the |
Beta Was this translation helpful? Give feedback.
-
Currently one can set multiple environment variables with
new-session
by using-e env_var_one=foo, -e, env_var_two=bar
multiple times.I would like the user to be able to set the desired environment variables in a config file and then exec a tmux new-session command. So we don't know how many environment variables we need for our command to exec from our application. Such a exec command would look like:
"tmux", "new-session", "-e", "env_var_one=foo", "-e", "env_var_two=bar"
Wouldn't it be more easy to generate a tmux command to exec from a external application, if a alternative syntax would be allowed?
new-session -e env_var_one=foo;env_var_two=bar
"tmux", "new-session", "-e", "env_var_one=foo;env_var_two=bar"
So a string with
;
as delimiter, or a other char. Examples of such a syntax can be found in the filemanagernnn
and infzf
.Beta Was this translation helpful? Give feedback.
All reactions