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
|
2024-07-11 01:33:08 +03:00
|
|
|
from="$i"
|
|
|
|
to="$HOME/.`basename $i`"
|
2020-11-04 02:24:45 +03:00
|
|
|
rm -rf "$ln"
|
2024-07-11 01:33:08 +03:00
|
|
|
echo "'$from'" "'$i'"
|
|
|
|
rm -f "$to"
|
|
|
|
ln -s -f "$from" "$to"
|
2020-11-04 02:03:20 +03:00
|
|
|
done
|
|
|
|
|