Add vi alias

This commit is contained in:
Anthony Rose 2024-03-18 13:14:45 +00:00
parent 9f9f6dc286
commit 1f464fa41a

View file

@ -78,6 +78,11 @@ if (!(Get-Command Get-Uptime -ErrorAction SilentlyContinue)) {
} }
} }
if ($nvim = Get-Command nvim.exe -ErrorAction SilentlyContinue) {
Set-Alias -Name vi -Value $nvim.Source
}
Remove-Variable -Name nvim
# Force UTF-8 output. # Force UTF-8 output.
$OutputEncoding = [System.Text.Encoding]::UTF8 $OutputEncoding = [System.Text.Encoding]::UTF8