Skip to content

Instantly share code, notes, and snippets.

@whoisryosuke
Created May 18, 2022 01:22
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whoisryosuke/ba9926dd66e825ab1c740101604bae77 to your computer and use it in GitHub Desktop.
Save whoisryosuke/ba9926dd66e825ab1c740101604bae77 to your computer and use it in GitHub Desktop.
PowerShell Config - Includes Oh My Posh, Terminal Icons, and Autocomplete with History (requires module see below)
# 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
@Kamyab-Majid
Copy link

Set-PSReadLineOption -EditMode Windows
this doesnt work well with latest oh my posh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment