tmux-python / tmux-python/tmuxp
How to escape the dollar sign?
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 248
- Avg merge
- 2h 13m
- Merged PRs (30d)
- 1
Description
Here's an example tmuxp yaml config part:
panes:
- shell_command:
- autossh -t -p 30360 tmp@localhost 'PATH=~/.nvm/versions/node/v20.16.0/bin:$PATH && cd pg && npx local-web-server -p 30361'
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).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The report identifies a tmuxp YAML shell_command containing a literal $PATH, but names no source file, test, or entry point. Start by reproducing the example and tracing how shell_command values are parsed and passed to tmux. Done means the command preserves the intended literal $PATH without breaking normal variable handling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, shell, yaml
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100