mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-10 17:59:11 +08:00
Merge pull request #1416 from gucong3000/patch-1
Compatible with Visual Studio Code (cmd)
This commit is contained in:
commit
ee4f85de85
6
vendor/init.bat
vendored
6
vendor/init.bat
vendored
@ -11,7 +11,11 @@ if not defined verbose-output ( set verbose-output=0 )
|
|||||||
|
|
||||||
:: Find root dir
|
:: Find root dir
|
||||||
if not defined CMDER_ROOT (
|
if not defined CMDER_ROOT (
|
||||||
for /f "delims=" %%i in ("%ConEmuDir%\..\..") do set "CMDER_ROOT=%%~fi"
|
if defined ConEmuDir (
|
||||||
|
for /f "delims=" %%i in ("%ConEmuDir%\..\..") do set "CMDER_ROOT=%%~fi"
|
||||||
|
) else (
|
||||||
|
for /f "delims=" %%i in ("%~dp0\..") do set "CMDER_ROOT=%%~fi"
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
:: Remove trailing '\'
|
:: Remove trailing '\'
|
||||||
|
Loading…
Reference in New Issue
Block a user