This commit is contained in:
David Refoua 2022-10-16 00:44:58 +03:30 committed by GitHub
parent 50bf15dd75
commit 9d76f99dcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
vendor/profile.ps1 vendored
View File

@ -17,7 +17,7 @@ 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 (-Not($null -eq $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 + "\..")