Skip to content

Commit

Permalink
Update prompt_bar.py
Browse files Browse the repository at this point in the history
  • Loading branch information
anki-code committed Nov 22, 2023
1 parent 3aa3099 commit c2e3535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xontrib/prompt_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def _field_date_time_tz():
t = time.strftime('%y-%m-%d %H:%M:%S%z', time.localtime())
return t[:-2] if t[-2:] == '00' else t

__xonsh__.env['PROMPT_FIELDS']['prompt_end_xonsh'] = "#" if is_superuser() else "@"
__xonsh__.env['PROMPT_FIELDS']['prompt_end_xonsh'] = "#@" if is_superuser() else "@"
__xonsh__.env['PROMPT_FIELDS']['cwd_abs'] = lambda: str(Path(__xonsh__.env['PROMPT_FIELDS']['cwd']()).expanduser())
__xonsh__.env['PROMPT_FIELDS']['date_time_tz'] = _field_date_time_tz
__xonsh__.env['PROMPT_FIELDS']['hist_status'] = lambda: '' if __xonsh__.history.remember_history else 'hist off'
Expand Down

0 comments on commit c2e3535

Please sign in to comment.