forked from aesterline/rally-emacs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup
executable file
·83 lines (70 loc) · 1.65 KB
/
setup
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
80
81
82
83
#!/bin/bash
if [[ "$OSTYPE" != "darwin"* ]]; then
sh bin/linux
else
sh bin/osx
fi
mkdir -p ~/.lein
if [ ! -L ~/.lein/profiles.clj ]; then
if [ -f !/.lein/profiles.clj ]; then
mkdir -p bak
mv ~/.lein/profiles.clj bak
fi
ln -s `pwd`/profiles.clj ~/.lein/profiles.clj
fi
if [ ! -L ~/.lein/user.clj ]; then
if [ -f ~/.lein/user.clj ]; then
mkdir -p bak
mv ~/.lein/user.clj bak
fi
ln -s `pwd`/user.clj ~/.lein/user.clj
fi
if [ ! -L ~/.tmux.shared.conf ]; then
if [ -f ~/.tmux.shared.conf ]; then
mkdir -p bak
mv ~/.tmux.shared.conf bak
fi
ln -s `pwd`/tmux.shared.conf ~/.tmux.shared.conf
fi
[ -L ~/.tmux.conf ] && rm ~/.tmux.conf
if [ ! -L ~/.tmux.conf ]; then
if [ -f ~/.tmux.conf ]; then
mkdir -p bak
mv ~/.tmux.conf bak
fi
if [[ "$OSTYPE" != "darwin"* ]]; then
ln -s `pwd`/tmux.conf.linux ~/.tmux.conf
else
ln -s `pwd`/tmux.conf.osx ~/.tmux.conf
fi
fi
if [ ! -L ~/.emacs.d ]; then
if [ -d ~/.emacs.d ]; then
mkdir -p bak
mv ~/.emacs.d bak
fi
ln -s `pwd`/ ~/.emacs.d
fi
if [ ! -L ~/.ackrc ]; then
if [ -f ~/.ackrc ]; then
mkdir -p bak
mv ~/.ackrc bak
fi
ln -s `pwd`/.ackrc ~/.ackrc
fi
mkdir -p ~/bin
if [ ! -L ~/bin/muxify ]; then
if [ -f ~/bin/muxify ]; then
mkdir -p bak
mv ~/bin/muxify bak
fi
ln -s `pwd`/muxify ~/bin/muxify
fi
if [ ! -f `pwd`/user.init.el ];
then
cp `pwd`/pristine/user.init.el.default `pwd`/user.init.el
fi
git submodule init
git submodule update
vendor/gitutils/submodule-hooks/install.sh `pwd`
sudo gem install docker-spoon