Trans.nvim/install.sh

20 lines
410 B
Bash
Raw Normal View History

2023-01-19 23:50:18 +08:00
#!/usr/bin/env bash
2022-12-20 12:05:36 +08:00
set -e
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-26 20:28:19 +08:00
unzip /tmp/dict.zip -d "$HOME/.vim/dict" && rm -rf /tmp/dict.zip
uNames=`uname -s`
osName=${uNames: 0: 4}
if [ "$osName" != "Linux" ];then
cd ./tts/ && npm install
fi