I would like to create a helper function that displays my public key in the terminal and also copies it to the clipboard. How would I do that?
cat ~/.ssh/id_rsa.pub | pbcopy, but this only copies the key to the clipboard.
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community