Download and extract the dictionary:
wget https://s3.amazonaws.com/jsomers/dictionary.zip
unzip dictionary.zip
tar zxf dictionary/stardict-dictd-web1913-2.4.2.tar.bz2
Move it to a proper place:
mkdir ~/dict/
mv stardict-dictd-web1913-2.4.2 ~/dict/
Install sdcv
:
brew install sdcv
Set up sdcv
to pick up your dictionary (I use csh
):
# this can be done either by setting the `STARDICT_DATA_DIR` environment variable
setenv STARDICT_DATA_DIR "~/dict/"
# or setting up an alias to sdcv for convenience
alias d sdcv -2 ~/dict/ -c -0