I just upgraded to the 1.9 development version, and found out that I can quote the variable(s) like this:
set-option -g status-left "#(powerline.sh left '#S:#I.#P')" Works perfectly... thanks! ------------------------------ Message: 4 Date: Tue, 5 Nov 2013 23:00:02 +0000 From: Nicholas Marriott <nicholas.marri...@gmail.com> Subject: Re: Use special variables in shell-command? What tmux version are you using? On Tue, Nov 05, 2013 at 11:46:36AM -0800, Charles Gamiz wrote: > Hello. I'm wondering if there's any way to use a special variable in a shell > command, such as: > > set-option -g status-left "#(powerline.sh left #S)" > > The specific problem I'm trying to solve involves the Powerline module ... if > I have multiple sessions up, they all show the same 'session name' on the > statusbar. The session name comes from a call to 'tmux display-message -p > "#S"', and it will return only the ID from the session in the foreground, or > the session most recently selected. > > I'm trying to hack the Powerline script to display the correct session-name > for each session, regardless of whether it's in the foreground or background. > Passing #S to the powerline script would be an easy way of accomplishing > that, but it doesn't seem to be possible. I'd be grateful for any other ideas. > > Thanks for the help. > Charles > ------------------------------------------------------------------------------ November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users