-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
61 lines (49 loc) · 1.23 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/sh
url="https://raw.github.com/akosela/dotfiles/master"
cd ~
curl -fsSL $url/.Xresources > .Xresources.ak
curl -fsSL $url/.bash_profile > .bash_profile.ak
curl -fsSL $url/.bashrc > .bashrc.ak
curl -fsSL $url/.exrc > .exrc.ak
curl -fsSL $url/.exrc.white > .exrc.white.ak
curl -fsSL $url/.mailrc > .mailrc.ak
curl -fsSL $url/.tmux.conf > .tmux.conf.ak
curl -fsSL $url/.gitconfig > .gitconfig.ak
curl -fsSL $url/.inputrc > .inputrc.ak
if [ -e .Xresources ]; then
cp .Xresources .Xresources.bak
fi
mv .Xresources.ak .Xresources
if [ -e .bash_profile.ak ]; then
cp .bash_profile .bash_profile.bak
fi
mv .bash_profile.ak .bash_profile
if [ -e .bashrc ]; then
cp .bashrc .bashrc.bak
fi
mv .bashrc.ak .bashrc
if [ -e .exrc ]; then
cp .exrc .exrc.bak
fi
mv .exrc.ak .exrc
if [ -e .exrc ]; then
cp .exrc .exrc.bak
fi
mv .exrc.white.ak .exrc.white
if [ -e .mailrc ]; then
cp .mailrc .mailrc.bak
fi
mv .mailrc.ak .mailrc
if [ -e .tmux.conf ]; then
cp .tmux.conf .tmux.conf.bak
fi
mv .tmux.conf.ak .tmux.conf
if [ -e .gitconfig ]; then
cp .gitconfig .gitconfig.bak
fi
mv .gitconfig.ak .gitconfig
if [ -e .inputrc ]; then
cp .inputrc .inputrc.bak
fi
mv .inputrc.ak .inputrc
echo "github.com/akosela/dotfiles installed successfully."