Site icon Being Software Craftsman (DFTBA)

How to make PowerShell shorten the long path of the current directory.

Are you getting less space on the PowerShell due to the long path of the current directory?

You can increase the signal to noise ratio by hiding that long path. How?

Follow the steps:

function prompt {
  $p = Split-Path -leaf -path (Get-Location)
  "$p> "
}

Exit mobile version