Created
April 19, 2026 11:40
-
-
Save Tuhaj/a3c55ea4ca90dbb6f08ef705a082de96 to your computer and use it in GitHub Desktop.
Small zsh helper: copies SSH public key to clipboard and prints the path
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
| pubkey() { | |
| local key=~/.ssh/id_ed25519.pub | |
| pbcopy < "$key" && printf '✓ Copied %s\n' "$key" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment