cmder/vendor/bin/cmder_shell.cmd

14 lines
283 B
Batchfile
Raw Permalink Normal View History

2022-09-10 03:30:24 +08:00
@echo off
2022-10-25 23:12:30 +08:00
set CMDER_ROOT=%~dp0..\..\
2022-09-10 03:30:24 +08:00
if "%cmder_init%" == "1" (
2022-10-25 23:12:30 +08:00
"%CMDER_ROOT%\vendor\clink\clink.bat" inject -q --profile "%CMDER_ROOT%\config" --scripts "%CMDER_ROOT%\vendor"
2022-09-10 03:30:24 +08:00
) else (
2022-10-25 23:12:30 +08:00
set cmder_init=1
2022-09-10 03:30:24 +08:00
)
2022-10-25 23:12:30 +08:00
pushd "%CMDER_ROOT%"
call "%CMDER_ROOT%\vendor\init.bat" /f %*
2022-09-10 03:30:24 +08:00
popd