From 3bf2eea68a652014efee9fe075b91d8e14d91c26 Mon Sep 17 00:00:00 2001 From: Morten Enemark Lund Date: Mon, 23 May 2016 11:21:43 +0200 Subject: [PATCH 1/2] Alias 'clear' to 'cls' on windows. Even if clear is available from MSYS it does nothing in cmd.exe or cmder/ConEmu --- xonsh/aliases.py | 1 + 1 file changed, 1 insertion(+) diff --git a/xonsh/aliases.py b/xonsh/aliases.py index a303bff2d..74cd693d2 100644 --- a/xonsh/aliases.py +++ b/xonsh/aliases.py @@ -514,6 +514,7 @@ def make_default_aliases(): default_aliases[alias] = ['cmd', '/c', alias] default_aliases['call'] = ['source-cmd'] default_aliases['source-bat'] = ['source-cmd'] + default_aliases['clear'] = 'cls' # Add aliases specific to the Anaconda python distribution. if ON_ANACONDA: def source_cmd_keep_prompt(args, stdin=None): From eea8b84f53a18a5d7aed2e02a200d9e28543b756 Mon Sep 17 00:00:00 2001 From: Morten Enemark Lund Date: Mon, 23 May 2016 11:22:25 +0200 Subject: [PATCH 2/2] Add an '--all' option to the which alias. Just to be consistent with the other options. --- xonsh/aliases.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xonsh/aliases.py b/xonsh/aliases.py index 74cd693d2..e3ec8ba23 100644 --- a/xonsh/aliases.py +++ b/xonsh/aliases.py @@ -349,7 +349,7 @@ def which(args, stdin=None, stdout=None, stderr=None): parser = ArgumentParser('which', description=desc) parser.add_argument('args', type=str, nargs='+', help='The executables or aliases to search for') - parser.add_argument('-a', action='store_true', dest='all', + parser.add_argument('-a','--all', action='store_true', dest='all', help='Show all matches in $PATH and xonsh.aliases') parser.add_argument('-s', '--skip-alias', action='store_true', help='Do not search in xonsh.aliases', dest='skip')