Skip to content

Instantly share code, notes, and snippets.

@RunnerRick
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RunnerRick/ea1905d8c1e49be11559 to your computer and use it in GitHub Desktop.
Save RunnerRick/ea1905d8c1e49be11559 to your computer and use it in GitHub Desktop.
PowerShell Profile
function prompt
{
# $user = (get-item env:USERNAME).Value
# $host = (get-item env:COMPUTERNAME).Value
$directoryName = (get-location).Path.Substring((get-location).Path.LastIndexOf("\") + 1)
"$directoryName>"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment