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:
Dax T Games
2018-11-02 09:00:41 -04:00
committed by Benjamin Staneck
parent c5a6afbf5b
commit 3a11d45552
8 changed files with 159 additions and 3 deletions

4
vendor/profile.ps1 vendored
View File

@ -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"