/Microsoft.PowerShell_profile.ps1 Secret
Created
May 18, 2022 01:22
Star
You must be signed in to star a gist
PowerShell Config - Includes Oh My Posh, Terminal Icons, and Autocomplete with History (requires module see below)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Start Oh My Posh CLI helper with my theme enabled | |
oh-my-posh init pwsh --config ~/.config/ohmyposh/whoisryosuke-v1.omp.json | Invoke-Expression | |
# Add icons to `ls` and `dir` file lists | |
# Don't have it? Install using this command: | |
# Install-Module -Name Terminal-Icons -Repository PSGallery | |
Import-Module -Name Terminal-Icons | |
# Add auto complete (requires PSReadline 2.2.0-beta1+ prerelease) | |
# Don't have it? Install using this command: | |
# Install-Module -Name PSReadLine -AllowPrerelease -Scope CurrentUser -Force -SkipPublisherCheck | |
Set-PSReadLineOption -PredictionSource History | |
Set-PSReadLineOption -PredictionViewStyle ListView | |
Set-PSReadLineOption -EditMode Windows |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Set-PSReadLineOption -EditMode Windows
this doesnt work well with latest oh my posh.