命令行翻译工具translate-shell

translate-shell

mac安装

$ mkdir tools
$ cd tools
$ git clone https://github.com/soimort/translate-shell
$ cd translate-shell/
$ make
[OK] Task build completed.
$ sudo make install
[OK] Task build completed.
[OK] translate-shell installed.
如果有gawk报错:
$ brew install gawk

进入命令行翻译

$ trans :zh -b -shell
Translate Shell
(:q to quit)
> english
英语
> trans
反式
> hello world
你好,世界
> :q
退出
选择了奋斗,以后可以随时还有选择安逸的权力。 但选择了安逸,可能以后就不那么轻易还能有选择奋斗的权力。
原文地址:https://www.cnblogs.com/wtli/p/7779685.html