Emacs config utilizing prelude as a base
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.

34 lines
1.1 KiB

  1. #!/bin/bash
  2. PRELUDE_INSTALL_DIR="$HOME/.emacs.d"
  3. echo -n "Checking to see if git is installed... "
  4. hash git 2>&- || { echo >&2 "not found. Aborting installation!'."; exit 1; }
  5. echo "found"
  6. echo -n "Looking for an existing Emacs config..."
  7. if [ -f $PRELUDE_INSTALL_DIR ]
  8. then
  9. echo "Found $PRELUDE_INSTALL_DIR. Backing up to $PRELUDE_INSTALL_DIR.pre-prelude"
  10. mv $PRELUDE_INSTALL_DIR $PRELUDE_INSTALL_DIR.pre-prelude
  11. fi
  12. if [ -f ~/.emacs ]
  13. then
  14. echo "Found ~/.emacs. Backing up to ~/.emacs.pre-prelude"
  15. mv ~/.emacs ~/.emacs.pre-prelude
  16. fi
  17. echo -n "Cloning Emacs Prelude from GitHub... "
  18. /usr/bin/env git clone https://github.com/bbatsov/emacs-prelude.git $PRELUDE_INSTALL_DIR > /dev/null
  19. echo "done."
  20. echo ' _____ ____ _ _ '
  21. echo '| ____|_ __ ___ __ _ ___ ___ | _ \ _ __ ___| |_ _ __| | ___ '
  22. echo '| _| | _ _ \ / _ |/ __/ __| | |_) | __/ _ \ | | | |/ _ |/ _ \'
  23. echo '| |___| | | | | | (_| | (__\__ \ | __/| | | __/ | |_| | (_| | __/'
  24. echo '|_____|_| |_| |_|\__,_|\___|___/ |_| |_| \___|_|\__,_|\__,_|\___|'
  25. echo '... is now installed!'