-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall_extra.sh
executable file
·60 lines (50 loc) · 1.24 KB
/
install_extra.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/bash
set -e
cd $HOME
mkdir -p ./bin
TOOLS_DIR=$HOME/Projects/tools
mkdir -p ${TOOLS_DIR}
unamestr=`uname`
if [[ "$unamestr" == 'Linux' ]]; then
if grep -q Microsoft /proc/version; then
subPlatform='WSL'
fi
platform='Linux'
sudo apt-get install \
httpie \
icdiff
elif [[ "$unamestr" == 'Darwin' ]]; then
platform='Darwin'
brew install \
ffmpeg \
imagemagick \
httpie \
icdiff
else
echo "[ERROR] Unknown platform."
exit 1
fi
# nix profile install nixpkgs#watch
# nix profile install nixpkgs#aria2
# Install dasht
# https://github.com/sunaku/dasht
if [[ "$unamestr" == 'Darwin' ]]; then
echo "Skip dasht installation."
# Use
# git clone git@github.com:sunaku/dasht.git ${TOOLS_DIR}/dasht
# to install dasht (deprecate: brew install dasht)
# dasht-docsets-install "^C$"
# dasht-docsets-install "^C\+\+$"
# dasht-docsets-install "^Javascript$"
# dasht-docsets-install "^CSS$"
# dasht-docsets-install "^HTML$"
# dasht-docsets-install "^Bash$"
# dasht-docsets-install "^React$"
# dasht-docsets-install "^Vim$"
fi
npm install -g ydict.js
npm install -g camdict
ln -s $CONFIG_DIR/bin/yd $HOME/bin/ydict.js
npm install -g cambridge-dictionary
npm install -g tzloc
npm install -g http-server