Created
January 2, 2016 21:50
-
-
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
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
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