Skip to content

Commit e16e29e

Browse files
authored
Add comments and structure to rc_awesome.xsh
Added initial comments and structure to the xonsh RC file.
1 parent c466ba6 commit e16e29e

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

xontrib/rc_awesome.xsh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,12 @@ if $XONSH_INTERACTIVE:
158158
#
159159
# Events - https://xon.sh/events.html
160160
#
161-
@events.on_postcommand
162-
def _prompt_err_command_again(cmd, rtn, out, ts):
163-
"""Keep command that returns non zero value in prompt."""
164-
if rtn != 0:
165-
$XONSH_PROMPT_NEXT_CMD = cmd.rstrip()
161+
if 0: # Enable manually.
162+
@events.on_postcommand
163+
def _prompt_err_command_again(cmd, rtn, out, ts):
164+
"""Keep command that returns non zero value in prompt."""
165+
if rtn != 0:
166+
$XONSH_PROMPT_NEXT_CMD = cmd.rstrip()
166167

167168

168169
if ON_LINUX or ON_DARWIN:
@@ -323,3 +324,4 @@ if ON_LINUX or ON_DARWIN:
323324

324325

325326

327+

0 commit comments

Comments
 (0)