I'm using Powershell in Windows 7. How to configure Powershell so that it only displays the current folder name (instead of the full path) in the shell prompt?
For example, Instead of
C:\folder\directory\name>, I want
You have to customize the prompt function in your PowerShell profile (
|show 4 more comments|
The below single line works fine for me
(Get-Location | Get-Item).Name