275
208

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Macな人は pbcopy が便利

Posted at

Macには pbcopy というコマンドがあって、ターミナルの出力をクリップボードにコピーしてくれるようです。

シェルで

$ pbcopy
aaa
bbb

ってやるとクリップボードにそのままコピーされてる。(入力の終了はCtrl + Dで。)

パイプで渡せばそのままクリップボードにコピーできて、

cat ~/.ssh/id_rsa.pub | pbcopy

こんな感じで公開鍵なんかをコピーする時に便利。

Bitbucketに教えてもらった。

pbcopy.png

275
208
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
275
208

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?