Skip to content

Instantly share code, notes, and snippets.

@yetanotherchris
Created January 2, 2016 21:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yetanotherchris/b93e3b1ff94963ef30d5 to your computer and use it in GitHub Desktop.
Save yetanotherchris/b93e3b1ff94963ef30d5 to your computer and use it in GitHub Desktop.
A powershell prompt that shows the current directory only, based off http://ss64.com/ps/syntax-prompt.html
function prompt { ($pwd -split '\\')[0]+'...'+$(($pwd -split '\\')[-1] -join '\') + '> ' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment