@requires_segment_info
def last_status(pl, segment_info):
 if (not segment_info[u'args'].last_exit_code):
  return None
 return [{u'contents': str(segment_info[u'args'].last_exit_code), u'highlight_groups': [u'exit_fail']}]

@ requires_segment_info def last_status ( pl , segment_info ) : if ( not segment_info [ u'args' ] . last_exit_code ) : return None return [ { u'contents' : str ( segment_info [ u'args' ] . last_exit_code ) , u'highlight_groups' : [ u'exit_fail' ] } ]
return last exit code .