Skip to main content
added 5 characters in body
Source Link
Worthwelle
  • 4.7k
  • 11
  • 22
  • 32

To show only the current directory in powershellPowerShell (or pwsh), put this in your profile.ps1profile.ps1:

function prompt { 'PS - ' + (get-item .).name + ' >' }

function prompt { 'PS - ' + (get-item .).name + ' >' }

To show only the current directory in powershell (or pwsh), put this in your profile.ps1:

function prompt { 'PS - ' + (get-item .).name + ' >' }

To show only the current directory in PowerShell (or pwsh), put this in your profile.ps1:

function prompt { 'PS - ' + (get-item .).name + ' >' }
Source Link

To show only the current directory in powershell (or pwsh), put this in your profile.ps1:

function prompt { 'PS - ' + (get-item .).name + ' >' }