13 lines
213 B
Bash
Executable file
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
|
|
|