2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

黒い画面で英英辞書を開く

Last updated at Posted at 2017-05-11

sdcv をインストール

$ sudo yum install sdcv

辞書をDL

http://stardict.rrr.rs/index.html から好みの辞書をDL
それを

/usr/share/stardict/dic

に展開。

これで sdcv とコンソールで打つと辞書が開く

「sdcv」って打ちづらい

もっと簡便にしたかったので以下のようなエイリアスを用意。

.bashrc
function show_oxford() {
  sdcv -n -u "Oxford Advanced Learner's Dictionary" $@ | less
}
alias ?='show_oxford'

これで

$ ? test

のように ? コマンドで辞書が開く

Macの場合

参考

インストール

$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
$ brew install sdcv

辞書ファイル用ディレクトリ作成

$ mkdir -p $HOME/.stardict/dic
2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?