-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·48 lines (40 loc) · 987 Bytes
/
install.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
#!/bin/sh
set -e
echo "Installing... ~/.vimrc"
if [ ! -e ~/.vimrc ]; then
ln -s `pwd`/vimrc ~/.vimrc
else
echo "~/.vimrc already exists... preserving."
fi
echo "Installing... ~/.vim/"
if [ ! -d ~/.vim/ ]; then
ln -s `pwd`/vim ~/.vim
else
echo "~/.vim/ already exists... preserving."
fi
echo "Installing... ~/.bash_aliases"
if [ ! -e ~/.bash_aliases ]; then
ln -s `pwd`/bash_aliases ~/.bash_aliases
else
echo "~/.bash_aliases already exists... preserving."
fi
echo "Installing... ~/.gitconfig"
if [ ! -e ~/.gitconfig ]; then
ln -s `pwd`/gitconfig ~/.gitconfig
else
echo "~/.gitconfig already exists... preserving."
fi
echo "Installing... ~/.tmux.conf"
if [ ! -e ~/.tmux.conf ]; then
ln -s `pwd`/tmux.conf ~/.tmux.conf
else
echo "~/.tmux.conf already exists... preserving."
fi
echo "Installing... ~/.zshrc"
if [ ! -e ~/.zshrc ]; then
ln -s `pwd`/zshrc ~/.zshrc
else
echo "~/.zshrc already exists... preserving."
fi
echo "done."
exit