mirror of
https://github.com/cmderdev/cmder.git
synced 2026-06-25 16:04:29 +08:00
committed by
Benjamin Staneck
parent
34554d6b08
commit
27f51f48a4
Vendored
+4
-4
@@ -155,16 +155,16 @@ $CmderUserProfilePath = Join-Path $env:CMDER_ROOT "config\user-profile.ps1"
|
|||||||
if (Test-Path $CmderUserProfilePath) {
|
if (Test-Path $CmderUserProfilePath) {
|
||||||
# Create this file and place your own command in there.
|
# Create this file and place your own command in there.
|
||||||
. "$CmderUserProfilePath"
|
. "$CmderUserProfilePath"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($ENV:CMDER_USER_CONFIG) {
|
if ($ENV:CMDER_USER_CONFIG) {
|
||||||
$CmderUserProfilePath = Join-Path $ENV:CMDER_USER_CONFIG "user-profile.ps1"
|
$CmderUserProfilePath = Join-Path $ENV:CMDER_USER_CONFIG "user-profile.ps1"
|
||||||
|
if (Test-Path $CmderUserProfilePath) {
|
||||||
|
. "$CmderUserProfilePath"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Test-Path $CmderUserProfilePath) {
|
if (! (Test-Path $CmderUserProfilePath) ) {
|
||||||
. "$CmderUserProfilePath"
|
|
||||||
} else {
|
|
||||||
# This multiline string cannot be indented, for this reason I've not indented the whole block
|
# This multiline string cannot be indented, for this reason I've not indented the whole block
|
||||||
|
|
||||||
Write-Host -BackgroundColor Darkgreen -ForegroundColor White "First Run: Creating user startup file: $CmderUserProfilePath"
|
Write-Host -BackgroundColor Darkgreen -ForegroundColor White "First Run: Creating user startup file: $CmderUserProfilePath"
|
||||||
|
|||||||
Reference in New Issue
Block a user