Skip to content

Instantly share code, notes, and snippets.

@pplmx
Last active May 17, 2024 09:03
Show Gist options
  • Save pplmx/bd6ec1709ccaa12917bfdb39245bf8b7 to your computer and use it in GitHub Desktop.
Save pplmx/bd6ec1709ccaa12917bfdb39245bf8b7 to your computer and use it in GitHub Desktop.
for ohmyposh theme config
# Import Modules
Import-Module PSFzf
Import-Module posh-git
Import-Module Terminal-Icons
# Config Modules
Set-PSReadLineOption -PredictionSource History
Set-PsFzfOption -PSReadLineChordProvider 'Ctrl+f' -PSReadLineChordReverseHistory 'Ctrl+r'
# Load prompt configs
#oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\powerlevel10k_modern.omp.json" | Invoke-Expression
oh-my-posh init pwsh --config ~/.aurora.omp.json | Invoke-Expression
@pplmx
Copy link
Author

pplmx commented May 17, 2024

# open this file by notepad
notepad $PROFILE

# if the above command runs into error, run this:
New-Item -Path $PROFILE -Type File -Force

# then reopen this file

# copy the above content into this file

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