forked from paulirish/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall_packages.sh
More file actions
executable file
·65 lines (52 loc) · 1.55 KB
/
install_packages.sh
File metadata and controls
executable file
·65 lines (52 loc) · 1.55 KB
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
PACKAGES="g++ python python-dev dstat htop cmake tmux fabric python-pip zsh libboost-dev"
GOLANG="https://storage.googleapis.com/golang/go1.9.3.linux-amd64.tar.gz"
GOLANG_ARTIFACT="go1.9.3.linux-amd64.tar.gz"
install_packages() {
for p in $(echo $PACKAGES | tr ' ' '\n'); do
dpkg -s $p 2>&1 > /dev/null
if [ $? -ne 0 ]; then
sudo aptitude install $p
fi
done
}
install_packages
install_golang() {
cd /tmp/
wget --quiet -O $GOLANG_ARTIFACT $GOLANG
sudo rm -f /usr/local/go
sudo tar -C /usr/local -xzf $GOLANG_ARTIFACT
rm $GOLANG_ARTIFACT
mkdir -p $HOME/.gotools/src
GOPATH=$HOME/.gotools /usr/local/go/bin/go get -u github.com/FiloSottile/gvt github.com/jteeuwen/go-bindata/... github.com/golang/lint/golint
}
install_golang
install_vimgo() {
cd ~/.vim/bundle
[[ -d vim-go ]] || git clone https://github.com/fatih/vim-go.git
cd vim-go
git pull origin master
}
install_vimgo
install_vim_ycm() {
cd ~/.vim/bundle
[[ -d YouCompleteMe ]] || git clone https://github.com/Valloric/YouCompleteMe.git
cd YouCompleteMe
git pull origin master
git submodule update --init --recursive
./install.py --gocode-completer
}
install_vim_ycm
install_oh_my_zsh() {
cd ~/
[[ -d .oh-my-zsh ]] || git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cd ~/.oh-my-zsh
git pull origin master
}
install_oh_my_zsh
install_fzf() {
cd ~/
[[ -d .fzf ]] || git clone --depth 1 https://github.com/junegunn/fzf.git .fzf
cd .fzf
./install
}
install_fzf