mirror of https://github.com/rwxrob/dot
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
199 B
Plaintext
15 lines
199 B
Plaintext
3 years ago
|
#!/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 $*
|