powerline-go icon indicating copy to clipboard operation
powerline-go copied to clipboard

Allow hiding warnings when shell enviorment variable is missing

Open dbrodie opened this issue 4 years ago • 0 comments

I want to use the shell environment variable module to show when the shell is inside tab-rs and some other similar examples. The use case for that is, that for the shellenv module to show the segment if the variable exists and not if it doesn't. I wouldn't mind implementing this, would just need to understand how you wont to implement it.

  • Configurable? Have an argument to specify if to print a warning if the environment variable, or just ignore and no warning
  • What to display if the environment variable is set but empty?

IMHO, it should not be configurable, and should display an empty section when empty (like a coloured separator but without content). And should only hide the segment when unset.

dbrodie avatar Sep 10 '20 10:09 dbrodie