forked from rmm5t/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 15
/
get.vimfiles.sh
executable file
·50 lines (37 loc) · 1.22 KB
/
get.vimfiles.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
# 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="coderifous"
# 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[32mCreating dotfile links in home dir."
echo -e "\033[0m"
ln -snf `pwd`/$REPO_NAME/vim ~/.vim
ln -snf ~/.vim/vimrc ~/.vimrc
ln -snf ~/.vim/gvimrc ~/.gvimrc
echo
echo -e "\033[32mInstalling plugins."
echo -e "\033[0m"
$REPO_NAME/vim/plugins install
echo
echo -e "\033[32mCreating ~/.vim_tmp: where vim is configured to store temporary files."
echo -e "\033[0m"
mkdir ~/.vim_tmp
echo
echo -e "\033[32mVim dotfiles installed!"
echo -e "\033[0m"