install.sh 205 B

123456789101112
  1. #!/bin/sh
  2. mkdir -p $HOME/.config
  3. rpath="$(dirname `readlink -f $0`)"
  4. for i in * ; do
  5. from="$rpath/$i"
  6. to="$HOME/.config/`basename $i`"
  7. echo "'$from'" "'$to'"
  8. rm -f "$to"
  9. ln -s -f "$from" "$to"
  10. done