mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-10 17:59:11 +08:00
Add option to reload aliases from file
Add a quick way to reload the aliases file in the current shell using: alias /reload
This commit is contained in:
parent
20c9ba207d
commit
717b556d7a
@ -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