jimeh / tmuxifier

Tmuxify your Tmux. Powerful session, window & pane management for Tmux.
MIT License
1.26k stars 109 forks source link

Using multiple nested `" "` in `run_cmd` #78

Open phcerdan opened 7 years ago

phcerdan commented 7 years ago

I want to run these kind of commands with from layout hi.window.sh vim -c "echo 'Hi, how are you?'" ~/tmp/a.md

But I cannot from due to the extra " " needed for run_cmd "vim -c "echo 'Hi, how are you?'" ~/tmp/a.md "

Is there any workaround to do this? any alternative to run_cmd without the "" . Or any other symbol with same meaning that " " or ' '?

Thanks

NicoGartmann commented 4 months ago

I stumpled over the same problem and just found out that you can just escape the inner "with \". So for your example run_cmd "vim -c \"echo 'Hi, how are you?'\" ~/tmp/a.md"