コピペ論文

昨日から github を使うためにこまごました作業をしていると見つけたもの。

Copy your public key to the clipboard so you can easily paste it into your web browser.

[~/.ssh]$ cat id_rsa.pub | pbcopy

The pbcopy command copies whatever is sent to it on STDIN to the clipboard, ensuring that you won’t have any extraneous newlines or other problems. Now you can simply select the appropriate text entry box in GitHub and paste in your public key!

Connecting to GitHub with SSH - GitHub Help

何その pbcopy って奴、と思って man pbcopy

DESCRIPTION
pbcopy takes the standard input and places it in the specified pasteboard. If no pasteboard is specified, the general pasteboard will be used by default. The input is placed in the pasteboard as ASCII data unless it begins with the Encapsulated PostScript (EPS) file header or the Rich Text Format (RTF) file header, in which case it is placed in the pasteboard as one of those data types.
http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/pbcopy.1.html

へぇ。そういえば Mac OS X 固有コマンドって openotool くらいしかマトモに使ったこと無かったな、と思ってひととおり調査。出てくる出てくる*1

何年も使ってるはずなのに全然わかってないもんです。ドワッジ