-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·57 lines (45 loc) · 1.53 KB
/
install.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
#!/usr/bin/env bash
BASE_DIR=$(dirname "$0")
function pre_install_mac() {
brew install Caskroom/cask/java nodejs npm git macvim cmake python3 mono go curl
xcode-select --install
}
function pre_install_ubuntu() {
sudo apt install -y git curl nodejs npm default-jre default-jdk build-essential cmake \
python-dev python3-dev clang python python3-pip mono-complete golang-go
sudo apt-get install -y python3
}
function main() {
echo "Installing packages ..."
case "$OSTYPE" in
darwin*)
pre_install_mac ;;
linux*)
pre_install_ubuntu ;;
*)
echo "OS $OSTYPE not supported"
esac
npm -g install instant-markdown-d
npm install -g eslint
pip3 install flake8
echo "Moving config files..."
cp "${BASE_DIR}/.vimrc" ${HOME}
cp "${BASE_DIR}/.tern-config" ${HOME}
echo "Installing fonts and color scheme..."
git clone https://github.com/powerline/fonts.git fonts
./fonts/install.sh
git clone https://github.com/zeis/vim-kolor.git kolor
mkdir -p ${HOME}/.vim/colors
mv kolor/colors/kolor.vim ${HOME}/.vim/colors/
rm -rf fonts kolor
echo "Creating folders..."
mkdir -p ${HOME}/.vim/.backup
mkdir -p ${HOME}/.vim/.swp
mkdir -p ${HOME}/.vim/.undodir
echo "Installing vim-plug..."
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
echo "Done."
echo 'Use `:PlugInstall` to install plugins when VIM is opened next time.'
}
main