Skip to content

Instantly share code, notes, and snippets.

@joshuawootonn
Created May 18, 2020 03:25
Show Gist options
  • Save joshuawootonn/15ec077b2b5219da32c7cfc9d9449bbb to your computer and use it in GitHub Desktop.
Save joshuawootonn/15ec077b2b5219da32c7cfc9d9449bbb to your computer and use it in GitHub Desktop.
Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Agnoster
function prune-them-boys() {
git checkout master; git remote update origin --prune; git branch -vv | Select-String -Pattern ": gone]" | % { $_.toString().Trim().Split(" ")[0]} | % {git branch -D $_}
}
@joshuawootonn
Copy link
Author

with v3 of oh-my-posh

Import-Module posh-git
Import-Module oh-my-posh
Set-PoshPrompt -Theme aliens

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