Skip to content

Instantly share code, notes, and snippets.

@jlimadev
Last active August 4, 2022 17:58
Show Gist options
  • Select an option

  • Save jlimadev/f3105527b0670e30c6297d29964f0d95 to your computer and use it in GitHub Desktop.

Select an option

Save jlimadev/f3105527b0670e30c6297d29964f0d95 to your computer and use it in GitHub Desktop.
Powershell profile with Oh My Posh and Posh Git
# 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
@jlimadev
Copy link
Author

jlimadev commented Aug 4, 2022

Using this terminal on VSCode:

Open VSCode settings.json and add the following configs:

"terminal.integrated.profiles.windows": {
  "Windows PowerShell": {
    "path": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
    "args": ["-nologo"]
  }
},
"terminal.integrated.fontFamily": "MesloLGLDZ NF",
"terminal.integrated.fontSize": 12

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