mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-10 17:59:11 +08:00
alias
command without arguments now outputs all defined aliases
This commit is contained in:
parent
0ae09e9a4a
commit
30ddd53288
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
set ALIASES="%CMDER_ROOT%\config\aliases"
|
set ALIASES="%CMDER_ROOT%\config\aliases"
|
||||||
|
|
||||||
|
if ["%*"] == [""] echo Use /? for help & echo. & goto :p_show
|
||||||
if ["%1"] == ["/?"] goto:p_help
|
if ["%1"] == ["/?"] goto:p_help
|
||||||
if ["%1"] == ["/reload"] goto:p_reload
|
if ["%1"] == ["/reload"] goto:p_reload
|
||||||
:: /d flag for delete existing alias
|
:: /d flag for delete existing alias
|
||||||
@ -37,6 +38,10 @@ doskey /macrofile=%ALIASES%
|
|||||||
echo Aliases reloaded
|
echo Aliases reloaded
|
||||||
goto:eof
|
goto:eof
|
||||||
|
|
||||||
|
:p_show
|
||||||
|
type %ALIASES% || echo No aliases found at %ALIASES%
|
||||||
|
goto :eof
|
||||||
|
|
||||||
:p_help
|
:p_help
|
||||||
echo.Usage:
|
echo.Usage:
|
||||||
echo. alias name=full command
|
echo. alias name=full command
|
||||||
|
Loading…
Reference in New Issue
Block a user