Question : powershell show only current directory
Answered by : excited-eel-rngh853qfz4d
function prompt { $p = Split-Path -leaf -path (Get-Location) "$p> "
}
Source : https://superuser.com/questions/446827/configure-windows-powershell-to-display-only-the-current-folder-name-in-the-shel | Last Update : Tue, 06 Apr 21