PowerShell_Scripts/base/prefervi.ps1

6 lines
272 B
PowerShell
Raw Normal View History

[CmdletBinding(SupportsShouldProcess)]param(
[switch]$sudo,
[Parameter(Position = 0, ValueFromPipelineByPropertyName, ValueFromPipeline, ValueFromRemainingArguments = $true)]
[string[]]$Path
)
Edit-TextFile -sudo:$sudo -PreferredEditors "nvim","vim","vi" -Path $Path