My dotfiles. Period.

setup 372B

1234567891011121314151617
  1. #!/bin/bash
  2. put() {
  3. echo "$1" >> $HOME/.bashrc
  4. }
  5. mark="# added by https://github.com/AloisMahdal/mydots"
  6. if grep -qF "$mark" $HOME/.bashrc;
  7. then
  8. echo "already set up, giving up";
  9. exit 1;
  10. else
  11. put ''
  12. put '# added by https://github.com/AloisMahdal/mydots"'
  13. put 'test -f "${HOME}/.bash/head.bashrc" \'
  14. put ' &&. "${HOME}/.bash/head.bashrc"'
  15. fi