rwxrob-dot/scripts/symlink

15 lines
199 B
Plaintext
Raw Normal View History

2022-02-09 07:29:05 +00:00
#!/bin/sh
symlink () {
from="$1"
to="$2"
if [ -z "$from" -o -z "$to" ]; then
echo 'symlink <from> <to>'
return 1
fi
echo Linking $from'` -> `'$to
ln -fs $to $from
}
symlink $*