Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Awesome. I knew about `pbcopy`, but i never knew you could also pipe stuff into it. That saves a lot of time saving script outputs to temporary text files and copying!


alias copyssh="cat ~/.ssh/id_rsa.pub | pbcopy"


Or without the extraneous cat: "pbcopy < ~/.ssh/id_rsa.pub"


Ah yes, thanks, I always forget about <




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: