-
Notifications
You must be signed in to change notification settings - Fork 0
/
install
79 lines (62 loc) · 1.66 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# 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
# *************************************
# brew bundle install
if [ -f ~/Brewfile ]; then
echo "found old Brewfile - removing..."
rm ~/Brewfile
fi
echo $'linking Brewfile\n'
ln -s $DIR/Brewfile ~/Brewfile
brew_install() {
echo "executing brew bundle install..."
brew bundle install
}
brew_install
# duti configuration
if [ -f ~/duti_picview.config ]; then
echo "found old ~/duti_picview.config - removing..."
rm ~/duti_picview.config
fi
echo $'linking duti config\n'
ln -s $DIR/duti_picview.config ~/duti_picview.config