etc/dot/install.sh
2024-07-11 03:33:08 +05:00

13 lines
213 B
Bash
Executable file

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