Created
October 23, 2023 10:21
-
-
Save thehappycheese/f21a293660fd82e37d34239604558d03 to your computer and use it in GitHub Desktop.
Shorten powershell prompt for tutorials
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function prompt { | |
$currentPath = (Get-Location).Path | |
$driveLetter = $currentPath.Substring(0,1) | |
$folderName = Split-Path $currentPath -Leaf | |
"$driveLetter:/.../$folderName> " | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment