-
Notifications
You must be signed in to change notification settings - Fork 0
/
install
53 lines (42 loc) · 1.14 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
45
46
47
48
49
50
51
52
53
# get current location
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
echo "running from $DIR..."
# **********************************
# GIT
#
# remove ~/.gitconfig
if [ -f ~/.gitconfig ]; then
echo "found old ~/.gitconfig - removing..."
rm ~/.gitconfig
fi
# link ~/.gitconfig
echo "sym linking new ~/.gitconfig with $DIR/.gitconfig!\n"
ln -s $DIR/git/.gitconfig ~/.gitconfig
# *********************************
# zsh
#
if [ -L ~/.zshrc ]; then
echo "found .zshrc - removing..."
rm ~/.zshrc
fi
echo $'linking .zshrc\n'
ln -s $DIR/.zshrc ~/.zshrc
if [ -L ~/.oh-my-zsh/themes/awesomepanda.zsh-theme ]; then
echo "found old awesomepanda.zsh-theme - removing..."
rm ~/.oh-my-zsh/themes/honukai.zsh-theme
fi
echo $'linking honukai zsh-theme\n'
ln -s $DIR/iterm/awesomepanda.zsh-theme ~/.oh-my-zsh/themes/awesomepanda.zsh-theme
if [ -L ~/.oh-my-zsh/custom/aliases.zsh ]; then
echo "found old aliases.zsh - removing..."
rm ~/.oh-my-zsh/custom/aliases.zsh
fi
# *************************************
# npm
#
if [ -L ~/.npmrc ]; then
echo "found old .npmrc - removing..."
rm ~/.npmrc
fi
echo $'linking .npmrc\n'
ln -s $DIR/.npmrc ~/.npmrc