From 32c1d4028ad28372a4a4aadfdaa6ddd86fec4898 Mon Sep 17 00:00:00 2001 From: "Dax T. Games" Date: Wed, 2 Mar 2016 15:17:43 -0600 Subject: [PATCH 1/3] added fully qualified path to cmd profile.d section --- vendor/init.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/init.bat b/vendor/init.bat index a3e7e7c..3635906 100644 --- a/vendor/init.bat +++ b/vendor/init.bat @@ -97,7 +97,7 @@ @pushd "%CMDER_ROOT%\config\profile.d" for /f "usebackq" %%x in ( `dir /b *.bat *.cmd` ) do ( REM @echo Calling %CMDER_ROOT%\config\profile.d\%%x... - @call %%x + @call "%CMDER_ROOT%\config\profile.d\%%x" ) @popd From d6eec2f3a5000e69b1e14a9d724cb429576bed8c Mon Sep 17 00:00:00 2001 From: "Dax T. Games" Date: Wed, 2 Mar 2016 16:16:27 -0600 Subject: [PATCH 2/3] silence profile.d if profile.d is empty --- vendor/init.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/init.bat b/vendor/init.bat index 3635906..442ae9c 100644 --- a/vendor/init.bat +++ b/vendor/init.bat @@ -95,8 +95,8 @@ ) @pushd "%CMDER_ROOT%\config\profile.d" -for /f "usebackq" %%x in ( `dir /b *.bat *.cmd` ) do ( - REM @echo Calling %CMDER_ROOT%\config\profile.d\%%x... +@for /f "usebackq" %%x in ( `dir /b *.bat *.cmd 2^>nul` ) do @( + @REM echo Calling %CMDER_ROOT%\config\profile.d\%%x... @call "%CMDER_ROOT%\config\profile.d\%%x" ) @popd From 8dbbb902d989e324590f7c9fa6b8069e63825d53 Mon Sep 17 00:00:00 2001 From: "Dax T. Games" Date: Wed, 2 Mar 2016 17:52:12 -0600 Subject: [PATCH 3/3] fixed vendor\profile.ps1 profile.d - added post popd --- vendor/profile.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vendor/profile.ps1 b/vendor/profile.ps1 index f549ed4..cbe7e19 100644 --- a/vendor/profile.ps1 +++ b/vendor/profile.ps1 @@ -99,9 +99,10 @@ if (-not (test-path "$ENV:CMDER_ROOT\config\profile.d")) { pushd $ENV:CMDER_ROOT\config\profile.d foreach ($x in ls *.ps1) { - # write-host Sourcing $ENV:CMDER_ROOT\config\profile.d\$x + # write-host write-host Sourcing $x . $x } +popd $CmderUserProfilePath = Join-Path $env:CMDER_ROOT "config\user-profile.ps1" if(Test-Path $CmderUserProfilePath) {