Read a local.ps1 file

This commit is contained in:
Anthony Rose 2023-06-26 15:16:42 +01:00
parent 3b3918dc22
commit 3e8888517d

View file

@ -110,3 +110,9 @@ if ($PSVersionTable.PSVersion -ge [System.Version]"7.2.0.0") {
Variable = $AnsiReset; Variable = $AnsiReset;
} }
} }
# Keep this at the end.
$LocalProfilePath = Join-Path -Path "$PSScriptRoot" -ChildPath "local.ps1"
if (Test-Path $LocalProfilePath -PathType Leaf) {
. $LocalProfilePath
}