mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
must include all changed files..
This commit is contained in:
parent
d22762cc3a
commit
ba486622c5
2 changed files with 7 additions and 4 deletions
|
@ -1176,6 +1176,8 @@ function with the ``xonsh.proc.foreground`` decorator.
|
|||
Aliasing is a powerful way that xonsh allows you to seamlessly interact to
|
||||
with Python and subprocess.
|
||||
|
||||
.. warning:: Foreign shell aliases that try to override xonsh aliases will be ignored
|
||||
|
||||
Up, Down, Tab
|
||||
==============
|
||||
The up and down keys search history matching from the start of the line,
|
||||
|
|
|
@ -582,9 +582,10 @@ def load_foreign_aliases(shells=None, config=None, issue_warning=True):
|
|||
_, shaliases = foreign_shell_data(**shell)
|
||||
for alias in set(shaliases) & set(xonsh_aliases):
|
||||
del shaliases[alias]
|
||||
print('aliases: alias {!r} of shell {!r} '
|
||||
'tries to override xonsh alias, '
|
||||
'xonsh wins!'.format(alias, shell['shell']),
|
||||
file=sys.stderr)
|
||||
if builtins.__xonsh_env__.get('XONSH_DEBUG'):
|
||||
print('aliases: ignoring alias {!r} of shell {!r} '
|
||||
'which tries to override xonsh alias.'
|
||||
''.format(alias, shell['shell']),
|
||||
file=sys.stderr)
|
||||
aliases.update(shaliases)
|
||||
return aliases
|
||||
|
|
Loading…
Add table
Reference in a new issue