etc/dot/install.sh

12 lines
172 B
Bash
Raw Normal View History

2020-11-04 02:03:20 +03:00
#!/bin/sh
rpath="$(dirname `readlink -f $0`)"
dot="$rpath/file"
2023-08-29 13:42:38 +03:00
cmd="$@"
2020-11-04 02:03:20 +03:00
for i in $dot/* ; do
ln="$HOME/.`basename $i`"
rm -rf "$ln"
2020-11-04 02:03:20 +03:00
echo $ln $i
2023-08-29 13:42:38 +03:00
$cmd "$i" "$ln"
2020-11-04 02:03:20 +03:00
done