etc/dot/install.sh

10 lines
164 B
Bash
Executable file

#!/bin/sh
rpath="$(dirname `readlink -f $0`)"
dot="$rpath/file"
for i in $dot/* ; do
ln="$HOME/.`basename $i`"
rm -rf "$ln"
echo $ln $i
ln -s "$i" "$ln"
done