4
1
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.
I've tried :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?
Has there been any progress on this? tmux 1.9 still does not expand
#(/bin/echo "#S")
. Instead it passes "#S", not the acutal session name – Michael Krupp – 2015-05-06T18:50:11.437