mirror of
https://github.com/cmderdev/cmder.git
synced 2025-06-16 14:47:49 +08:00
add diag helper scripts and adds to the path (#1918)
These scripts are to help us help our users by getting a relative picture of their environment that they can submit with an incident.
This commit is contained in:
committed by
Benjamin Staneck
parent
c5a6afbf5b
commit
3a11d45552
4
vendor/profile.ps1
vendored
4
vendor/profile.ps1
vendored
@ -93,7 +93,7 @@ if (Get-Module PSReadline -ErrorAction "SilentlyContinue") {
|
||||
}
|
||||
|
||||
# Enhance Path
|
||||
$env:Path = "$Env:CMDER_ROOT\bin;$env:Path;$Env:CMDER_ROOT"
|
||||
$env:Path = "$Env:CMDER_ROOT\bin;$Env:CMDER_ROOT\vendor\bin;$env:Path;$Env:CMDER_ROOT"
|
||||
|
||||
#
|
||||
# Prompt Section
|
||||
@ -166,6 +166,8 @@ if ($ENV:CMDER_USER_CONFIG) {
|
||||
rename-item "$env:CMDER_USER_CONFIG\user-profile.ps1" user_profile.ps1
|
||||
}
|
||||
|
||||
$env:Path = "$Env:CMDER_USER_CONFIG\bin;$env:Path"
|
||||
|
||||
$CmderUserProfilePath = Join-Path $ENV:CMDER_USER_CONFIG "user_profile.ps1"
|
||||
if (Test-Path $CmderUserProfilePath) {
|
||||
Import-Module "$CmderUserProfilePath"
|
||||
|
Reference in New Issue
Block a user