diff --git a/vendor/profile.ps1 b/vendor/profile.ps1 index 905b4b7..6c7270a 100644 --- a/vendor/profile.ps1 +++ b/vendor/profile.ps1 @@ -62,4 +62,14 @@ if (Test-Path Env:\CMDER_START) { } # Enhance Path -$env:Path = "$Env:CMDER_ROOT\bin;$env:Path;$Env:CMDER_ROOT" \ No newline at end of file +$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 +} \ No newline at end of file