PortValhalla/scripts/Common/Software/zoxide/Main.ps1

22 lines
550 B
PowerShell
Raw Normal View History

param(
$Action,
[hashtable] $Arguments
)
. "$PSScriptRoot/../PowerShell/Profile.ps1";
. "$PSScriptRoot/../../Scripts/Software.ps1";
Start-SoftwareInstaller @PSBoundParameters `
-Configurator {
param([string] $Name)
Add-PowerShellProfileStatement `
-System `
-Category "$Name" `
-Script (
@(
"# $Name",
(Get-ScriptInitializer "zoxide init powershell | Out-String")
) -join [System.Environment]::NewLine);
};