powershell get current folder 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> "
}