mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-13 03:09:10 +08:00
Merge pull request #165 from glucas/use_home
Allow for existing HOME variable
This commit is contained in:
commit
fe31accba4
8
vendor/init.bat
vendored
8
vendor/init.bat
vendored
@ -30,6 +30,10 @@
|
|||||||
@doskey /macrofile="%CMDER_ROOT%\config\aliases"
|
@doskey /macrofile="%CMDER_ROOT%\config\aliases"
|
||||||
|
|
||||||
:: Set home path
|
:: Set home path
|
||||||
@set HOME=%USERPROFILE%
|
@if not defined HOME set HOME=%USERPROFILE%
|
||||||
|
|
||||||
@if defined CMDER_START cd /d "%CMDER_START%"
|
@if defined CMDER_START (
|
||||||
|
@cd /d "%CMDER_START%"
|
||||||
|
) else (
|
||||||
|
@cd /d "%HOME%"
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user