From 717b556d7aacda91fb6827445421fadaf6b62091 Mon Sep 17 00:00:00 2001 From: Greg Lucas Date: Fri, 24 Oct 2014 15:39:37 -0400 Subject: [PATCH] Add option to reload aliases from file Add a quick way to reload the aliases file in the current shell using: alias /reload --- bin/alias.bat | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/alias.bat b/bin/alias.bat index ae3966a..c9eeec6 100644 --- a/bin/alias.bat +++ b/bin/alias.bat @@ -1,5 +1,6 @@ @echo off if ["%1"] == ["/?"] goto:p_help +if ["%1"] == ["/reload"] goto:p_reload if ["%2"] == [""] echo Insufficient parameters. & goto:p_help ::validate alias setlocal @@ -20,6 +21,11 @@ echo Alias created endlocal goto:eof +:p_reload +doskey /macrofile="%CMDER_ROOT%\config\aliases" +echo Aliases reloaded +goto:eof + :p_help echo.Usage: echo. alias name=full command