Skip to content

Instantly share code, notes, and snippets.

@BenjaVR
Last active June 20, 2019 17:36
Show Gist options
  • Select an option

  • Save BenjaVR/c99d66160d54a82a223c530cf1c02aab to your computer and use it in GitHub Desktop.

Select an option

Save BenjaVR/c99d66160d54a82a223c530cf1c02aab to your computer and use it in GitHub Desktop.
Powershell config
<key name="PowershellCoreTask">
<value name="Name" type="string" data="{pwsh}"/>
<value name="Flags" type="dword" data="00000005"/>
<value name="Hotkey" type="dword" data="00000000"/>
<value name="GuiArgs" type="string" data=""/>
<value name="Active" type="long" data="0"/>
<value name="Count" type="long" data="1"/>
<value name="Cmd1" type="string" data="pwsh -NoLogo"/>
</key>
Install-Module posh-git -Scope CurrentUser -Force
Install-Module oh-my-posh -Scope CurrentUser -Force
Install-Module -Name PSReadLine -AllowPrerelease -Scope CurrentUser -Force -SkipPublisherCheck
Start-Process -Path "https://github.com/ryanoasis/nerd-fonts/releases/latest"
Echo "Download the 'Meslo' font, install 'Meslo LG M Regular Nerd Font Complete Mono Windows Compatible.otf', and press a key to continue."
# Wait for keypress.
$HOST.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown") | OUT-NULL
$HOST.UI.RawUI.Flushinputbuffer()
Set-ItemProperty -Path "Registry::HKEY_CURRENT_USER\Console" -Name "FaceName" -Value "MesloLGM NF" -Type String
"pwsh" -NoLogo -NoProfile
# Import modules.
Import-Module posh-git
Import-Module oh-my-posh
# Set oh-my-posh theme.
Set-Theme Paradox
{
"terminal.integrated.shell.windows": "C:\\Program Files\\PowerShell\\6\\pwsh.exe",
"terminal.integrated.shellArgs.windows": ["-NoLogo"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment