-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·65 lines (57 loc) · 1.65 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
58
59
60
61
62
63
64
65
#!/bin/bash
# install dotfiles
OLDIFS=$IFS
IFS=','
for path in \
bash,.bashrc \
profile,.profile \
fish,.config/fish/config.fish \
git,.gitconfig \
gvim,.gvimrc \
tmux,.tmux.conf \
vim,.vimrc \
zsh,.zshrc \
i3,.i3/config \
Xresources,.Xresources \
; do
set -- $path
target=$HOME/$2
mkdir -p $(dirname $target)
ln -sf "$(pwd)/$1" "$target"
done
IFS=$OLDIFS
# get linux distro id
. /etc/os-release
# OS packages
if [ $ID == "centos" ]; then
curl -sL https://rpm.nodesource.com/setup_10.x | sudo -E bash -
sudo yum install -y \
epel-release \
http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm
sudo yum install -y \
ack cowsay tmux zsh git xorg-x11-server-utils \
automake gcc gcc-c++ kernel-devel cmake \
python-devel python3-devel \
nodejs
elif [ $ID == "ubuntu" ]; then
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt update && sudo apt install -y \
ack cowsay tmux zsh git x11-xserver-utils \
automake gcc g++ linux-headers-generic cmake \
python-dev python-pip python3-dev \
nodejs
fi
# pyenv
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
# fzf
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install --all
# install vim-plug and plugins
curl -fLso ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
vim +PlugInstall +GoInstallBinaries +qall
# install YCM
~/.vim/plugged/youcompleteme/install.py \
--clang-completer \
--js-completer
sudo python -m pip install flake8