To create permanent powershell aliases, store them in $PsHome\profile.ps1 or %UserProfile%\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1

Don't forget: Set-ExecutionPolicy -ExecutionPolicy Unrestricted

Also, to use vim (with WSL installed) put this in there:

function vi ($File){
$File = $File -replace “\\”, “/”
bash -c “vi $File”


Replace vi with vim if you prefer using 'vim' as your alias

Sign in to participate in the conversation

Fosstodon is a Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.