How do I capture bash output to the Mac OS X clipboard?

前端 未结 3 1747
忘掉有多难
忘掉有多难 2021-01-29 19:16

Is it possible to capture bash output to the OS X clipboard?

3条回答
  •  有刺的猬
    2021-01-29 19:45

    In case you want to capture error messages, this will work:

    cmd 2>&1  | pbcopy
    

提交回复
热议问题