From 07f82fed669c9d31b3be795c647f28f662b89ee8 Mon Sep 17 00:00:00 2001 From: ZyX Date: Tue, 6 Jan 2015 22:17:28 +0300 Subject: [PATCH] Use `zsh.environ` if possible --- powerline/bindings/zsh/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerline/bindings/zsh/__init__.py b/powerline/bindings/zsh/__init__.py index 03373fd6..2c320485 100644 --- a/powerline/bindings/zsh/__init__.py +++ b/powerline/bindings/zsh/__init__.py @@ -97,7 +97,7 @@ class Environment(object): return False -environ = Environment() +environ = getattr(zsh, 'environ', Environment()) class ZshPowerline(ShellPowerline):