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