Add user startup file for powershell

This commit is contained in:
Pireax 2015-10-14 18:50:52 +02:00
parent f71a1f3903
commit 0ab9b74013

12
vendor/profile.ps1 vendored
View File

@ -62,4 +62,14 @@ if (Test-Path Env:\CMDER_START) {
}
# Enhance Path
$env:Path = "$Env:CMDER_ROOT\bin;$env:Path;$Env:CMDER_ROOT"
$env:Path = "$Env:CMDER_ROOT\bin;$env:Path;$Env:CMDER_ROOT"
$CmderUserProfilePath = Join-Path $env:CMDER_ROOT "config/user-profile.ps1"
if(Test-Path $CmderUserProfilePath) {
# Create this file and place your own command in there.
Invoke-Expression $CmderUserProfilePath
} else {
Write-Host "Creating user startup file: $CmderUserProfilePath"
"# Use this file to run your own startup commands" | Out-File $CmderUserProfilePath
}