-
Notifications
You must be signed in to change notification settings - Fork 1
/
install
executable file
·44 lines (36 loc) · 1.01 KB
/
install
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
#!/bin/sh
echo "donne moi les pleins pouvoirs, gros"
sudo -v
# install submodules recursively
git submodule update --remote --init --recursive
. cli/init.sh
source ./brewfile
echo "don't forget to install tweetbot, microsoft remote desktop"
source ./osx
if [ ! -f "$HOME/.gitconfig" ]; then
cd ~
ln -s ~/dotfiles/git/gitconfig .gitconfig
ln -s ~/dotfiles/git/git_template .git_template
cd ~/dotfiles
fi
if [ ! -e "$HOME/.github_token" ]; then
echo "Saving a GitHub token"
echo "Press a key to start the process"
read -k
echo "Please login into your GitHub account to get a token & paste it (or just type enter to bypass this step):"
open "https://github.com/settings/applications"
read GITHUB_TOKEN
if [ "$GITHUB_TOKEN" != "" ]
then
echo $GITHUB_TOKEN > $HOME/.github_token
fi
fi
if [ ! -f "$HOME/.ctags" ]; then
cd ~
ln -s ~/dotfiles/ctags/ctags .ctags
cd ~/dotfiles
fi
if type vagrant >/dev/null; then
vagrant plugin install vagrant-bindfs
vagrant plugin install vagrant-vbguest
fi