xonsh/xontrib/bashisms.py

7 lines
160 B
Python
Raw Normal View History

2016-11-15 01:01:34 -05:00
"""Bash-like interface extensions for xonsh."""
2016-11-20 18:49:26 -05:00
2016-11-15 01:01:34 -05:00
@events.on_precommand
def bash_preproc(cmd):
return cmd.replace('!!', __xonsh_history__.inps[-1].strip())