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.

37 lines
1.2 KiB

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