mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-10 09:49:12 +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.
|
||||
if ($null -eq $ENV:CMDER_ROOT) {
|
||||
if ($ENV:ConEmuDir) {
|
||||
$ENV:CMDER_ROOT = Resolve-Path $ENV:ConEmuDir + "\..\.."
|
||||
$ENV:CMDER_ROOT = Resolve-Path($ENV:ConEmuDir + "\..\..")
|
||||
} else {
|
||||
$ENV:CMDER_ROOT = Resolve-Path $PSScriptRoot + "\.."
|
||||
$ENV:CMDER_ROOT = Resolve-Path($PSScriptRoot + "\..")
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user