bujnlc8 / omz-translator

oh-my-zsh翻译插件

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

omz-translator plugin

Introduction

The omz-translator plugin get the translation result from baidu translator. Support both chinese and english.

To use it, clone the repository into ~/.oh-my-zsh/plugins/, add omz-translator to the plugins array of your zshrc file:

plugins=(... omz-translator)

Functions

  • tt + [words]: translate the words from english to chinese or from chinese to english

  • tZ + [chinese words]: query the result from chinese dictionary.

If not support the words, it will try to read words from stdin or system clipbodard.

Keys

  • TT: translate the words from system clipbodard.

Attentions

About

oh-my-zsh翻译插件


Languages

Language:Python 84.2%Language:Shell 15.8%