mirror of
https://github.com/powerline/powerline.git
synced 2025-07-06 13:34:58 +02:00
parent
98b7ed2950
commit
ba33c327f5
@ -76,6 +76,14 @@ class Environment(object):
|
||||
except IndexError:
|
||||
return default
|
||||
|
||||
@staticmethod
|
||||
def __contains__(key):
|
||||
try:
|
||||
zsh.getvalue(key)
|
||||
return True
|
||||
except IndexError:
|
||||
return False
|
||||
|
||||
|
||||
environ = Environment()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user