Skip to content

Instantly share code, notes, and snippets.

@scharlton2
Last active May 12, 2021 15:27
Show Gist options
  • Save scharlton2/b80f74821e3199682f41bf4e782f0a19 to your computer and use it in GitHub Desktop.
Save scharlton2/b80f74821e3199682f41bf4e782f0a19 to your computer and use it in GitHub Desktop.
powershell profile
Set-PSReadLineOption -EditMode Emacs
# the next three lines require a powerline compatible font
# see https://docs.microsoft.com/en-us/windows/terminal/tutorials/powerline-setup
# Install-Module posh-git -Scope CurrentUser
# Install-Module oh-my-posh -Scope CurrentUser
# Install-Module -Name PSReadLine -Scope CurrentUser # for PowerShell Core
Import-Module posh-git
Import-Module oh-my-posh
Set-PoshPrompt -Theme paradox
### function prompt {'PS ' + "[$env:USERNAME@$env:COMPUTERNAME] " + $($executionContext.SessionState.Path.CurrentLocation) + "`n" + $(if ($NestedPromptLevel -ge 1) { '>>' }) + '> '}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment