Skip to content

Commit

Permalink
Merge pull request #867 from daxgames/cmd_profile.d_fix
Browse files Browse the repository at this point in the history
Various fixes for profile.d support
  • Loading branch information
Stanzilla committed Mar 5, 2016
2 parents a74fdd2 + 8dbbb90 commit df768f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions vendor/init.bat
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@
)

@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
@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

Expand Down
3 changes: 2 additions & 1 deletion vendor/profile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit df768f3

Please sign in to comment.