Configure Windows PowerShell to display Current Working Directory Name
Open Powershell and Check your powershell profile path $profile Create a File if it does not exist mkdir C:\Users\anthoniraj\Documents\WindowsPowerShell\ Create a Profile File notepad C:\Users\anthoniraj\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 Add the following script and save the content function prompt { $p = Split-Path -leaf -path ( Get-Location ) " $p > " } Restart PowerShell. Now you will see only current working directory in console.