2023-01-19 23:50:18 +08:00
|
|
|
#!/usr/bin/env bash
|
2022-12-20 12:05:36 +08:00
|
|
|
set -e
|
|
|
|
|
2023-01-30 12:01:58 +08:00
|
|
|
if test -e "$HOME/.vim/dict/ultimate.db"; then
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2023-01-26 20:28:19 +08:00
|
|
|
mkdir -p "$HOME/.vim/dict"
|
2022-12-20 12:05:36 +08:00
|
|
|
|
2023-01-26 20:28:19 +08:00
|
|
|
wget https://github.com/skywind3000/ECDICT-ultimate/releases/download/1.0.0/ecdict-ultimate-sqlite.zip -O /tmp/dict.zip
|
2023-01-21 22:09:20 +08:00
|
|
|
|
2023-01-26 20:28:19 +08:00
|
|
|
unzip /tmp/dict.zip -d "$HOME/.vim/dict" && rm -rf /tmp/dict.zip
|
2023-01-21 22:09:20 +08:00
|
|
|
|
2023-02-03 15:27:00 +08:00
|
|
|
uNames=$(uname -s)
|
2023-01-21 22:09:20 +08:00
|
|
|
osName=${uNames: 0: 4}
|
|
|
|
if [ "$osName" != "Linux" ];then
|
|
|
|
cd ./tts/ && npm install
|
|
|
|
fi
|