Merge pull request #2714 from AaronV77/aaron-sprint-2018

SciPy sprint new aliases.
This commit is contained in:
Anthony Scopatz 2018-07-16 15:29:41 -05:00 committed by GitHub
commit 9b5770dcbb
Failed to generate hash of commit
2 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,13 @@
**Added:**
- Added feature to aliases.
**Changed:** None
**Deprecated:** None
**Removed:** None
**Fixed:** None
**Security:** None

View file

@ -152,6 +152,9 @@ def xonsh_exit(args, stdin=None):
print() # gimme a newline
return None, None
def xonsh_reset(args, stdin=None):
""" Clears __xonsh_ctx__"""
builtins.__xonsh_ctx__.clear()
@lazyobject
def _SOURCE_FOREIGN_PARSER():
@ -470,6 +473,7 @@ def make_default_aliases():
'xontrib': xontribs_main,
'completer': xca.completer_alias,
'xpip': detect_xpip_alias(),
'xonsh-reset': xonsh_reset,
}
if ON_WINDOWS:
# Borrow builtin commands from cmd.exe.