I want to execute an external command based on the value of my session name. I know that the
:display-message '#S' will give me the session name, but I want to have that name automatically sent to my external command.
:run-shell "my-command #S", but it does not work, as "#S" is not substituted.
Is there anything like
:MY_VAR=$(display-message -p "#S") that I could use?