-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_links.sh
executable file
·102 lines (90 loc) · 1.7 KB
/
setup_links.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#!/bin/bash
set -e
if [ -f ~/.gemrc_env_backup ]
then
echo "skipping gemrc..."
else
if [ -f ~/.gemrc ]
then
mv ~/.gemrc ~/.gemrc_env_backup
fi
echo "Linking gemrc"
ln -s ~/tmp/dotfiles/gemrc ~/.gemrc
fi
if [ -f ~/.gitconfig_env_backup ]
then
echo "skipping gitconfig..."
else
if [ -f ~/.gitconfig ]
then
mv ~/.gitconfig ~/.gitconfig_env_backup
fi
echo "Linking gitconfig"
ln -s ~/tmp/dotfiles/gitconfig ~/.gitconfig
fi
if [ -f ~/.githelpers_env_backup ]
then
echo "skipping githelpers..."
else
if [ -f ~/.githelpers ]
then
mv ~/.githelpers ~/.githelpers_env_backup
fi
echo "Linking githelpers"
ln -s ~/tmp/dotfiles/githelpers ~/.githelpers
fi
if [ -f ~/.screenrc_env_backup ]
then
echo "skipping screenrc..."
else
if [ -f ~/.screenrc ]
then
mv ~/.screenrc ~/.screenrc_env_backup
fi
echo "Linking screenrc"
ln -s ~/tmp/dotfiles/screenrc ~/.screenrc
fi
if [ -f ~/.tmux_env_backup ]
then
echo "skipping tmux..."
else
if [ -f ~/.tmux.conf ]
then
mv ~/.tmux.conf ~/.tmux_env_backup
fi
echo "Linking tmux.conf"
ln -s ~/tmp/dotfiles/tmux.conf ~/.tmux.conf
fi
if [ -f ~/.vimrc_env_backup ]
then
echo "skipping vimrc..."
else
if [ -f ~/.vimrc ]
then
mv ~/.vimrc ~/.vimrc_env_backup
fi
echo "Linking vimrc"
ln -s ~/tmp/dotfiles/vimrc ~/.vimrc
fi
if [ -f ~/.vim_env_backup ]
then
echo "skipping vim..."
else
if [ -f ~/.vim ]
then
mv ~/.vim ~/.vim_env_backup
fi
echo "Linking vim"
ln -s ~/tmp/dotfiles/vim ~/.vim
fi
if [ -f ~/.psqlrc_env_backup ]
then
echo "skipping psqlrc..."
else
if [ -f ~/.psqlrc ]
then
mv ~/.psqlrc ~/.psqlrc_env_backup
fi
echo "Linking psqlrc"
ln -s ~/tmp/dotfiles/psqlrc ~/.psqlrc
fi