Skip to content

Latest commit

 

History

History
46 lines (26 loc) · 948 Bytes

README.md

File metadata and controls

46 lines (26 loc) · 948 Bytes

ds

Build Status

'ds' means 'dictionary shell', it helps you to translate a word from Chinese to English or from English to Chinese in a terminal. The translation based on YOUDAO traslate api.

Feature

• translate Chinese to English

alt text

• translate English to Chinese

alt text

Usage

1. translate English

ds ENG_WORD

2. translate Chinese

ds 中文词汇

Api

1. install

curl -L https://raw.githubusercontent.com/LanceGin/ds/master/install.sh > install.sh
bash install.sh
source ~/.bashrc
rm install.sh

2. uninstall

ds -c uninstall

3. update

ds -c update

4. reset YOUDAO api key and keyfrom

ds -c reset_key
source ~/.bashrc