Skip to content

Commit

Permalink
Merge pull request #666 from Pireax/posh-user-script
Browse files Browse the repository at this point in the history
Add user startup file for powershell
  • Loading branch information
Stanzilla committed Oct 14, 2015
2 parents f71a1f3 + 0ab9b74 commit 215ba57
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion vendor/profile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 215ba57

Please sign in to comment.