PowerShell¶
Find binary location like unix which¶
Restart Session¶
Update powershell¶
Open powershell in administrative mode and enter this command
Alias for Powershell¶
Get List¶
Set an Alias¶
Temporary
Set powershell profile config C:\Users\<YourUsername>\Documents\PowerShell\profile.ps1
notepad++ C:\Users\mehrdad\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
add Set-Alias -Name ... line
Remove an Alias¶
Disable Bell alert in terminal¶
- open the
jsonfile in setting section - add this
key & valueto json file
Active powershell profile¶
Fish-like Autosuggestion in Powershell¶
I. First, install ´PSReadLine´ version 2.1.0
II. Then, initialize it with the command below(notepad $profile)
oh-my-posh¶
Installation¶
Clone oh-my-posh Themes¶
- git clone without-my-custom-theme
Active Custom Theme¶
Show the path of the current profile
Open the active profile
Edit these lines
oh-my-posh init pwsh --config C:\Users\mehrdad\oh-my-posh\themes\mehrdad.omp.json | Invoke-Expression