Trans.nvim/install.sh
2023-01-26 20:51:38 +08:00

15 lines
349 B
Bash
Executable File

#!/usr/bin/env bash
set -e
mkdir -p "$HOME/.vim/dict"
wget https://github.com/skywind3000/ECDICT-ultimate/releases/download/1.0.0/ecdict-ultimate-sqlite.zip -O /tmp/dict.zip
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