Add Args.jobnum property

Fixes #742
This commit is contained in:
ZyX 2014-01-10 23:01:32 +04:00
parent 759bf043dc
commit e56bf3606b

View File

@ -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: