mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-05 17:00:58 +01:00
Add ignore alias
This commit is contained in:
parent
fde73a5ad6
commit
25ceadc54f
1 changed files with 3 additions and 1 deletions
|
@ -14,6 +14,7 @@ import importlib.util
|
|||
|
||||
from xonsh.lazyasd import LazyBool, lazyobject, lazybool
|
||||
|
||||
|
||||
@lazyobject
|
||||
def distro():
|
||||
try:
|
||||
|
@ -285,7 +286,8 @@ def windows_bash_command():
|
|||
# Check that bash is on path otherwise try the default directory
|
||||
# used by Git for windows
|
||||
wbc = 'bash'
|
||||
bash_on_path = builtins.__xonsh_commands_cache__.lazy_locate_binary('bash')
|
||||
bash_on_path = builtins.__xonsh_commands_cache__.lazy_locate_binary('bash',
|
||||
ignore_alias=True)
|
||||
if bash_on_path:
|
||||
# Check if Bash is from the "Windows Subsystem for Linux" (WSL)
|
||||
# which can't be used by xonsh foreign-shell/completer
|
||||
|
|
Loading…
Add table
Reference in a new issue