> For the complete documentation index, see [llms.txt](https://sunzsh.gitbook.io/xiaoshan.bug/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sunzsh.gitbook.io/xiaoshan.bug/mac-zhong-duan-li-de-pbcopy-ming-ling.md).

# Mac终端里的pbcopy命令

{% embed url="<https://v.douyin.com/r81vobn/>" %}

{% embed url="<https://www.bilibili.com/video/BV1Jt4y1s7TQ/>" %}

这个 pbcopy 帮我解决了一个问题

就是比如说我们有一个 curl

然后呢每次执行这个 curl 啊

这个结果如果短还好

如果长的话

我想把它复制出来就很麻烦

后来我就上网搜了一下

可以利用这个 pbcopy

配合这个管道符自动把这个内容

复制到剪切版

怎么做呢

比如说我们再来一遍还是这个 curl

这个然后呢我们加一个管道符 pbcopy

大家看

然后呢

我们就直接找个地方粘贴一下大家看

这就可以了

那有了这个的话

我就把我那个 alfred 插件

又优化了一下

比如说还是这个curl

然后呢我们在这里

我们用 curl2local

比如说8000，大家看\~ 按住 shift

这就变了结果自动存入剪切版

他生成的命令自动就有这 pbcopy 了

然后这个段口号和 ip 也变成本地的了

然后这个插件地址的话呢还在这

在这里
