diff --git a/roles/home-cli/files/Microsoft.PowerShell_profile.ps1 b/roles/home-cli/files/Microsoft.PowerShell_profile.ps1 index 7d9225c..9423f39 100644 --- a/roles/home-cli/files/Microsoft.PowerShell_profile.ps1 +++ b/roles/home-cli/files/Microsoft.PowerShell_profile.ps1 @@ -110,3 +110,9 @@ if ($PSVersionTable.PSVersion -ge [System.Version]"7.2.0.0") { Variable = $AnsiReset; } } + +# Keep this at the end. +$LocalProfilePath = Join-Path -Path "$PSScriptRoot" -ChildPath "local.ps1" +if (Test-Path $LocalProfilePath -PathType Leaf) { + . $LocalProfilePath +}