-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.sh
executable file
·51 lines (40 loc) · 1.19 KB
/
setup.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
#!/bin/bash
# Downloads dotfiles repository to current directory, then links vim dot-files
# into current user's home directory.
#
# Requires git.
#
# Easy run:
#
# curl https://raw.github.com/coderifous/dotfiles/master/get.vimfiles.sh | sh
# Put your github username on the next line
REPO_OWNER="wadetandy"
# REPO_HOST will generally be "github.com", but may be changed to something else
# if you're using a different git hosting service or if you have configured
# an alias in ~/.ssh/config, e.g. because you're using multiple identities.
REPO_HOST="github.com"
# The next line should contain the name of the repository.
REPO_NAME="dotfiles"
GIT_REPO_URL="git@$REPO_HOST:$REPO_OWNER/$REPO_NAME.git"
echo -e "\033[32mDownloading repository."
echo -e "\033[0m"
git clone $GIT_REPO_URL
echo
echo -e "\033[32mUpdating submodules."
echo -e "\033[0m"
pushd $REPO_NAME
git submodule update --init
echo
echo -e "\033[32mCreating dotfile links in home dir."
echo -e "\033[0m"
VIMHOME=`pwd`"/vim"
ln -s $VIMHOME ~/.vim
ln -s ~/.vim/vimrc ~/.vimrc
ln -s ~/.vim/gvimrc ~/.gvimrc
echo
echo -e "\033[32mVim dotfiles installed!"
echo -e "\033[0m"
CUR_DIR=`pwd`
HOME=`echo ~/`
DOTFILES=$(cd $(dirname "$0"); pwd)
popd