mirror of
				https://github.com/cmderdev/cmder.git
				synced 2025-10-31 09:22:15 +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:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user