mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-14 07:29:12 +08:00
fixed vendor\profile.ps1 profile.d - added post popd
This commit is contained in:
parent
d6eec2f3a5
commit
8dbbb902d9
3
vendor/profile.ps1
vendored
3
vendor/profile.ps1
vendored
@ -99,9 +99,10 @@ if (-not (test-path "$ENV:CMDER_ROOT\config\profile.d")) {
|
|||||||
|
|
||||||
pushd $ENV:CMDER_ROOT\config\profile.d
|
pushd $ENV:CMDER_ROOT\config\profile.d
|
||||||
foreach ($x in ls *.ps1) {
|
foreach ($x in ls *.ps1) {
|
||||||
# write-host Sourcing $ENV:CMDER_ROOT\config\profile.d\$x
|
# write-host write-host Sourcing $x
|
||||||
. $x
|
. $x
|
||||||
}
|
}
|
||||||
|
popd
|
||||||
|
|
||||||
$CmderUserProfilePath = Join-Path $env:CMDER_ROOT "config\user-profile.ps1"
|
$CmderUserProfilePath = Join-Path $env:CMDER_ROOT "config\user-profile.ps1"
|
||||||
if(Test-Path $CmderUserProfilePath) {
|
if(Test-Path $CmderUserProfilePath) {
|
||||||
|
Loading…
Reference in New Issue
Block a user