mirror of
https://github.com/rwxrob/dot
synced 2024-11-18 15:25:52 +00:00
15 lines
199 B
Plaintext
15 lines
199 B
Plaintext
|
#!/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 $*
|