display current directory powershell code example
Example: powershell show only current directory
function prompt {
$p = Split-Path -leaf -path (Get-Location)
"$p> "
}
function prompt {
$p = Split-Path -leaf -path (Get-Location)
"$p> "
}