My dotfiles. Period.

setup 488B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. gitver=`git --version | cut -d ' ' -f 3`
  3. if [[ "$gitver" > "1.8" ]]; then
  4. tilde='~'
  5. else
  6. tilde=$HOME
  7. fi
  8. host=`hostname`
  9. user=`whoami`
  10. conf=""
  11. conf="${conf}[include]\n"
  12. conf="${conf} path = $tilde/.git-universe/gitconfig-before\n"
  13. conf="${conf} path = $tilde/.git-universe/host/$host.gitconfig\n"
  14. conf="${conf} path = $tilde/.git-universe/user/$user.gitconfig\n"
  15. conf="${conf} path = $tilde/.git-universe/gitconfig-after\n"
  16. echo $conf >> ~/.gitconfig