You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is simply, the $PATH part expands on the tmux session (what I do not desire and expect) which breaks the command, so I need to disable the feature (?) or safely escape such character(s).
The text was updated successfully, but these errors were encountered:
It doesn't look like there is currently a way to escape the dollar sign. I'll have to look further into the different cases where environment variables should and should not be expanded before proposing a solution.
Debugging notes to future self
Manually running :send-keys "echo '$PATH'" Enter in tmux expands $PATH
Manually running :send-keys 'echo "$PATH"' Enter in tmux does not expand $PATH
pane.send_keys("PATH=$PATH") works as expected (does not expand in pane)
Can quickly be tested tmuxp shell
Implies that libtmux.pane.cmd() works as expected
Implies that libtmux.server.cmd() works as expected
The issue has to be with how the command is loaded from the config
Found it: tmuxp.workspace.loader.expandshell() defaults to expanding all $ and ${} with the user's local environment
Here's an example tmuxp yaml config part:
The problem is simply, the
$PATH
part expands on the tmux session (what I do not desire and expect) which breaks the command, so I need to disable the feature (?) or safely escape such character(s).The text was updated successfully, but these errors were encountered: