-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathVagrantprovision.sh
69 lines (42 loc) · 1.23 KB
/
Vagrantprovision.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
66
67
68
#!/bin/bash
# Update
sudo apt-get -y update > /dev/null
# Add vagrant user to admin group
sudo usermod -a -G admin vagrant
# Variables
HOME=/home/vagrant
# Git
sudo apt-get -y install git
# TODO: user should set its git config settings
GIT_USERNAME='Your Username'
GIT_EMAIL='[email protected]'
GIT_COREEDITOR='vim'
GIT_MERGETOOL='vimdiff'
git config --global user.name "$GIT_USERNAME"
git config --global user.email "$GIT_EMAIL"
git config --global core.editor "$GIT_COREEDITOR"
git config --global merge.tool "$GIT_MERGETOOL"
# Go home
cd $HOME
# My configs
git clone https://github.com/starikovs/conf.git Conf
ln -s Conf/vimrc .vimrc
ln -s Conf/dircolors .dircolors
mv .bashrc .bashrc_
ln -s Conf/bashrc .bashrc
# Vim
sudo apt-get -y install vim
git clone https://github.com/gmarik/Vundle.vim.git .vim/bundle/vundle
#vim +PluginInstall +qall
# Nginx
#sudo apt-get -y install nginx
# Configure nginx to use /vagrant folder
#sudo sed -i 's/\/usr\/share\/nginx\/html/\/vagrant/g' /etc/nginx/sites-available/default
#sudo service nginx reload
# Nodejs (npm included)
curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install -y nodejs
# Update npm
sudo npm install -g npm
# Gulp
sudo npm install --global gulp