From fa330520965c380450c47f2057046534d7612274 Mon Sep 17 00:00:00 2001 From: Marc Schlaich Date: Wed, 19 Mar 2014 12:25:41 +0100 Subject: [PATCH] Only cd to $HOME if started in CMDER_ROOT. --- vendor/init.bat | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vendor/init.bat b/vendor/init.bat index 5204422..2c61a73 100644 --- a/vendor/init.bat +++ b/vendor/init.bat @@ -35,5 +35,7 @@ @if defined CMDER_START ( @cd /d "%CMDER_START%" ) else ( - @cd /d "%HOME%" + @if "%CD%\" == "%CMDER_ROOT%" ( + @cd /d "%HOME%" + ) )