Last active
August 4, 2022 17:58
-
-
Save jlimadev/f3105527b0670e30c6297d29964f0d95 to your computer and use it in GitHub Desktop.
Powershell profile with Oh My Posh and Posh Git
This file contains hidden or 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
| # Instaling Oh My Posh and Posh Git by running the following commands | |
| ## winget install oh-my-posh | |
| ## PowerShellGet\Install-Module posh-git -Scope CurrentUser -Force | |
| ## code $PROFILE | |
| # PROFILE: | |
| oh-my-posh init pwsh --config $env:POSH_THEMES_PATH\the-unnamed.omp.json | Invoke-Expression | |
| Enable-PoshTooltips | |
| # 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 | |
| # load git posh | |
| Import-Module posh-git | |
| clear | |
| # My favorite themes: jandedobbeleer, the-unnamed. | |
| # My favorite fonts: MesloLGM NF |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using this terminal on VSCode:
Open VSCode
settings.jsonand add the following configs: