From 25ceadc54f3839dc97cae524f370d5123d0627ec Mon Sep 17 00:00:00 2001 From: Morten Enemark Lund Date: Fri, 3 Feb 2017 17:26:40 +0100 Subject: [PATCH] Add ignore alias --- xonsh/platform.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xonsh/platform.py b/xonsh/platform.py index b66c54c7c..f15e24da9 100644 --- a/xonsh/platform.py +++ b/xonsh/platform.py @@ -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