Merge pull request #304 from glucas/pull-alias-reload

Add option to reload aliases from file
This commit is contained in:
Martin Kemp 2014-10-25 21:40:49 +01:00
commit 25991ac6a1

View File

@ -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