Hi all!
The new status bar in 3.3 is really great!
I was trying to have a status bar component that displays an environment variable (in my case Python's $VIRTUAL_ENV variable). After many tries I've managed to do that via user variables and an "Interpolated String" component.
I'm using zsh, so in my .zshrc I'm setting the user variable pyvenv from the environment variable like this:
precmd()
{
iterm2_set_user_var pyvenv $(basename ${VIRTUAL_ENV:-none})
}
And then I'm defining an "Interpolated String" component with the string value:
Which gives me the result I want.
Is this the best approach, or is there a more direct method?
Servus,
Walter