Skip to content

Instantly share code, notes, and snippets.

@CodeByAidan
Created July 17, 2024 12:36
Show Gist options
  • Save CodeByAidan/65f86b6635f1fac4f0124efee6cfbc83 to your computer and use it in GitHub Desktop.
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.
Set-Clipboard -Value ("`"" + (Get-Location).Path + "`"")
# "C:\Windows"
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