Skip to content

Instantly share code, notes, and snippets.

@MaxySpark
Last active May 27, 2021 12:11
Show Gist options
  • Save MaxySpark/6089ea669a8ea1bf083c1a478ae3e6c0 to your computer and use it in GitHub Desktop.
Save MaxySpark/6089ea669a8ea1bf083c1a478ae3e6c0 to your computer and use it in GitHub Desktop.
Install-Module oh-my-posh -Scope CurrentUser
Get-PoshThemes
if (!(Test-Path -Path $PROFILE.CurrentUserAllHosts)) {
New-Item -ItemType File -Path $PROFILE.CurrentUserAllHosts -Force
}
Import-Module posh-git
Import-Module oh-my-posh
Set-PoshPrompt -Theme powerlevel10k_classic
# Shows navigable menu of all options when hitting Tab
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete
# Autocompletion for arrow keys
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward
@MaxySpark
Copy link
Author

MaxySpark commented May 27, 2021

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