mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-06 09:20:57 +01:00
Merge pull request #2714 from AaronV77/aaron-sprint-2018
SciPy sprint new aliases.
This commit is contained in:
commit
9b5770dcbb
2 changed files with 17 additions and 0 deletions
13
news/aaron-sprint-2018.rst
Normal file
13
news/aaron-sprint-2018.rst
Normal file
|
@ -0,0 +1,13 @@
|
|||
**Added:**
|
||||
|
||||
- Added feature to aliases.
|
||||
|
||||
**Changed:** None
|
||||
|
||||
**Deprecated:** None
|
||||
|
||||
**Removed:** None
|
||||
|
||||
**Fixed:** None
|
||||
|
||||
**Security:** None
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue