mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-10 17:59:11 +08:00
Merge pull request #304 from glucas/pull-alias-reload
Add option to reload aliases from file
This commit is contained in:
commit
25991ac6a1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user