You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617
  1. #! /usr/bin/env bash
  2. dir="$(dirname $(readlink -f "${0}"))"
  3. for file in gitconfig
  4. do
  5. if [ -e ~/."${file}" ]
  6. then
  7. if [ -h ~/."${file}" ]
  8. then
  9. rm ~/."${file}"
  10. else
  11. mv ~/."${file}" ~/."${file}.old"
  12. fi
  13. fi
  14. ln -sf "${dir}/${file}" ~/."${file}"
  15. done