mirror of
https://github.com/cmderdev/cmder.git
synced 2025-02-15 01:40:22 +08:00
fix problem with #2756
This commit is contained in:
parent
67e2bf1a73
commit
8d4afb0570
4
vendor/profile.ps1
vendored
4
vendor/profile.ps1
vendored
@ -18,9 +18,9 @@ if ($ENV:CMDER_USER_CONFIG) {
|
|||||||
# We do this for Powershell as Admin Sessions because CMDER_ROOT is not being set.
|
# We do this for Powershell as Admin Sessions because CMDER_ROOT is not being set.
|
||||||
if ($null -eq $ENV:CMDER_ROOT) {
|
if ($null -eq $ENV:CMDER_ROOT) {
|
||||||
if ($ENV:ConEmuDir) {
|
if ($ENV:ConEmuDir) {
|
||||||
$ENV:CMDER_ROOT = Resolve-Path $ENV:ConEmuDir + "\..\.."
|
$ENV:CMDER_ROOT = Resolve-Path($ENV:ConEmuDir + "\..\..")
|
||||||
} else {
|
} else {
|
||||||
$ENV:CMDER_ROOT = Resolve-Path $PSScriptRoot + "\.."
|
$ENV:CMDER_ROOT = Resolve-Path($PSScriptRoot + "\..")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user