Hello all,
I have a utility that is getting run from my tmux status bar, and it needs
to know which session it's getting run from. I tried passing "#S" to the
command within "#()", but unfortunately it looks like the "#()" gets run
before the "#S" gets replaced. To be specific, if I put the following into
my ~/.tmux.conf:
set -g status-right '#(echo the session is #S)'
echo gets called with arguments "the session is #S", which it then
faithfully echoes, and then AFTER the echoing, the "#S" is parsed into
session number. Is there a way to get tmux to replace the #S first?
I would just run something like "tmux display-message -p #S" from within
the external command, but unfortunately it looks like the status bar
commands are invoked from an environment that isn't linked to the session
whose pane is currently updating its status bar.
Any pointers or tips would be helpful.
Thanks,
-E
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users