mirror of
https://github.com/cmderdev/cmder.git
synced 2025-02-25 14:50:22 +08:00
Optimize comments of using arguments in user-profile.cmd
This commit is contained in:
parent
9a3a8f23d0
commit
daa94c5462
18
vendor/init.bat
vendored
18
vendor/init.bat
vendored
@ -320,17 +320,15 @@ echo.
|
|||||||
echo :: you can add your plugins to the cmder path like so
|
echo :: you can add your plugins to the cmder path like so
|
||||||
echo :: set "PATH=%%CMDER_ROOT%%\vendor\whatever;%%PATH%%"
|
echo :: set "PATH=%%CMDER_ROOT%%\vendor\whatever;%%PATH%%"
|
||||||
echo.
|
echo.
|
||||||
echo :: Pass custom arguments to init.bat, and you can parse them like so:
|
echo :: arguments in this batch are passed from init.bat, you can parse them like so:
|
||||||
echo :: If found...
|
|
||||||
echo :: echo %* | find /i "/noautorun">nul
|
|
||||||
echo :: if "%ERRORLEVEL%" == "0" (
|
|
||||||
echo :: call vsCode
|
|
||||||
echo :: )
|
|
||||||
echo.
|
echo.
|
||||||
echo :: If NOT found...
|
echo :: echo %* | find /i "/customOption">nul
|
||||||
echo :: echo %* | find /i "/noautorun">nul
|
echo :: if "%ERRORLEVEL%" == "0" (
|
||||||
echo :: if "%ERRORLEVEL%" == "1" (
|
echo :: echo found /customOption.
|
||||||
echo :: call vsCode
|
echo :: do something.
|
||||||
|
echo :: ) else (
|
||||||
|
echo :: echo not found /customOption.
|
||||||
|
echo :: do something.
|
||||||
echo :: )
|
echo :: )
|
||||||
echo.
|
echo.
|
||||||
echo @echo off
|
echo @echo off
|
||||||
|
Loading…
x
Reference in New Issue
Block a user