alias command without arguments now outputs all defined aliases

This commit is contained in:
an-selm 2014-12-24 22:16:26 +03:00
parent 0ae09e9a4a
commit 30ddd53288

View File

@ -2,6 +2,7 @@
set ALIASES="%CMDER_ROOT%\config\aliases"
if ["%*"] == [""] echo Use /? for help & echo. & goto :p_show
if ["%1"] == ["/?"] goto:p_help
if ["%1"] == ["/reload"] goto:p_reload
:: /d flag for delete existing alias
@ -37,6 +38,10 @@ doskey /macrofile=%ALIASES%
echo Aliases reloaded
goto:eof
:p_show
type %ALIASES% || echo No aliases found at %ALIASES%
goto :eof
:p_help
echo.Usage:
echo. alias name=full command