您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

install 281B

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