Merge pull request #743 from ZyX-I/fix-742

Add Args.jobnum property
This commit is contained in:
ZyX-I 2014-01-10 11:00:58 -08:00
commit 4d408c7c78
1 changed files with 5 additions and 0 deletions

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: