blob: d27920d8c5b7fc37e68dd524f8f4fb0cde68b8cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
set -e
cd "`dirname $0`"
DATE="`date +'%Y%m%d'`"
DIR="`pwd`"
for file in bash_profile bashrc screenrc vimrc zshrc zshfunc; do
if ! [ -L "$HOME/.$file" ]; then
[ -e "$HOME/.$file" ] && mv "$HOME/.$file" "$HOME/.$file-$DATE"
ln -s "$DIR/$file" "$HOME/.$file"
fi
done
|