etc/dot/install.sh
2023-08-29 13:42:38 +03:00

11 lines
172 B
Bash
Executable file

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