blob: d2db644f92c59826e2dee380005537b7727492d1 (
plain)
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
|
#!/bin/sh
set -e
die()
{
echo "$@" 1>&2
exit 1
}
abspath()
{
(cd "$1" && pwd)
}
dirname=$(abspath $(dirname "$0"))
echo "$dirname"
files="
abcde.conf
bash_profile
bashrc
emacs
git-global-ignore
mailcap
muttprintrc
muttrc
profile
screenrc
signature
signature-codethink
vimrc
xsessionrc
"
for x in $files
do
[ -e "$dirname/$x" ] || die "$dirname/$x does not exist, oops"
# [ ! -L "$HOME/.$x" ] || die "$HOME/.$x is already a symlink, oops"
done
for x in $files
do
ln -sf "$dirname/$x" "$HOME/.$x"
done
ln -sf "$dirname/xmonad.hs" "$HOME/.xmonad/xmonad.hs"
|