Answers for "create alias in powershell permanently"

1

create alias in powershell permanently

// create a profile.ps1 file to set aliases
notepad $((Split-Path $profile -Parent) + "\profile.ps1")

// example aliases (opens notepad when you type `edit` in console)
Set-Alias edit notepad.exe

// example aliases (opens notepad when you type `edit` in console)
Set-Alias edit1 "C:\Program Files\Windows NT\Accessories\wordpad.exe"
Posted by: Guest on May-08-2021

Browse Popular Code Answers by Language