Skip to content

Instantly share code, notes, and snippets.

@johanforssell
Last active September 1, 2015 17:30
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 johanforssell/d8a58fcf3874b101674c to your computer and use it in GitHub Desktop.
Save johanforssell/d8a58fcf3874b101674c to your computer and use it in GitHub Desktop.
Windows Powershell prompt
# You can edit this file with `editor_name $profile`
# I'm using Visual Studio Code, so it's `code $profile`
#
# In order to run this script you need to change the
# execution policy. Run a powershell as admin and do this:
#
# Set-ExecutionPolicy RemoteSigned
#
function prompt {
$p = Split-Path -leaf -path (Get-Location)
Write-Host " $p" -nonewline -foregroundcolor Green
Write-Host ">" -nonewline -foregroundcolor Yellow
return ' '
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment