A Friendlier Powershell Prompt

function prompt {
$user = [Environment]::UserName;
$computer = gc env:computername;
$dir = [Environment]::CurrentDirectory=(Get-Location -PSProvider FileSystem).ProviderPath;
$user + "@" + $computer + ":" + $dir + ">"
}

This post helped with the last part.


Leave a Reply

Your email address will not be published. Required fields are marked *