Skip to content

Instantly share code, notes, and snippets.

@SibTiger
Last active June 10, 2017 04:20
Show Gist options
  • Save SibTiger/61bce8624de921faac929d39f65f85c6 to your computer and use it in GitHub Desktop.
Save SibTiger/61bce8624de921faac929d39f65f85c6 to your computer and use it in GitHub Desktop.
Emulates the Bash prompt used on a particular VPN server, using PowerShell.
# Change our prompt to match with our favorite formatting
function prompt
{
Write-Host ("[" + $(Get-Date -Format ddd.dd.MMM.yyyy) + " " + $(Get-Date -Format T) + "]" + " " + "[" + $(Get-Item -Path '.\' -Verbose).FullName +"]");
"$ ";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment