PSZoxide.psm1
|
#Requires -Version 7.2 Set-StrictMode -Version Latest $ErrorActionPreference = 'Stop' # Dot-source Private first, then Public. Either folder may be empty or absent. foreach ($folder in 'Private', 'Public') { $path = Join-Path $PSScriptRoot $folder if (-not (Test-Path -LiteralPath $path -PathType Container)) { continue } foreach ($file in Get-ChildItem -LiteralPath $path -Filter '*.ps1' -File | Sort-Object Name) { . $file.FullName } } # Like evaluating `zoxide init powershell`: the prompt hook and the z and zi aliases. Install-ZoxideHook |