< 返回版块

Folyd 发表于 2018-11-12 14:18

https://github.com/anyshortcut/anyshortcut-cli

Anyshortcut-cli,Rust 写的命令行工具,帮助你在终端快速打开你经常访问的网址。

命令行的 Anyshortcut 可以干什么?

因为 Anyshortcut(https://anyshortcut.com/) 的快捷键是可以同步的,对于 CLI 程序是通过 Access token 来访问后端 API 来同步快捷键的。Access token 可以在官网用户中心找到。 

用 Access token 登录之后即可把所有快捷键同步下来,然后可以使用命令行快速打开网页。

比如,我给https://www.google.com 绑定了快捷键G,那就可以输入as g快速用默认浏览器打开 Google。

$ as g
Url: https://www.google.com/

其他的混合快捷键、二级快捷键也是类似,就不再介绍了。

当然这里的命令asanyshortcut的别名,要不然名字太长了,根本就算不上效率工具了。

alias as=$(which anyshortcut)

怎么安装

如果你是 Rust 开发者,很简单,用 cargo install 就行。

cargo install anyshortcut

当然我也提交了 Homebrew,但是因为 GitHub repository not notable enough (<30 forks, <30 watchers and <75 stars)的原因暂时没有被 merge,希望以后能达到这个要求。Merge 之后就可以通过 brew 安装了。

brew install anyshortcut

评论区

写评论

还没有评论

1 共 0 条评论, 1 页