diff --git a/powerline/bindings/zsh/__init__.py b/powerline/bindings/zsh/__init__.py index ede6870a..5acdc39f 100644 --- a/powerline/bindings/zsh/__init__.py +++ b/powerline/bindings/zsh/__init__.py @@ -53,6 +53,11 @@ class Args(object): except IndexError: return None + @property + def jobnum(self): + zsh.eval('integer POWERLINE_JOBNUM=${(%):-%j}') + return zsh.getvalue('POWERLINE_JOBNUM') + def string(s): if type(s) is bytes: