Last active
May 12, 2021 15:27
-
-
Save scharlton2/b80f74821e3199682f41bf4e782f0a19 to your computer and use it in GitHub Desktop.
powershell profile
This file contains 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
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