blob: 95b0eab4652fd9b7c6463c3acf62c65594317d32 (
plain) (
blame)
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
|
#!/bin/bash
confdir=$(dirname $0)
files="bash_logout
bashrc
crawlrc
gtkrc
inputrc
nethackrc
screenrc
vimrc
Xdefaults
bin
fortune
vim"
function install() {
if [[ -e "$2" && ! -h "$2" ]]; then
mv "$2" "$2.bak"
fi
ln -sf "$confdir/$1" "$2"
}
for file in $files; do
install "${file}" ".${file}"
done
|