Created
July 17, 2024 12:36
-
-
Save CodeByAidan/65f86b6635f1fac4f0124efee6cfbc83 to your computer and use it in GitHub Desktop.
Copy the current path into your clipboard in a one-liner with PowerShell.
This file contains 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
Set-Clipboard -Value ("`"" + (Get-Location).Path + "`"") | |
# "C:\Windows" |
This file contains 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
Set-Clipboard -Value (Get-Location).Path | |
# C:\Windows |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment