From f1058f5fcc4b85708bf7f5862abba3b5ed9fc3cb Mon Sep 17 00:00:00 2001 From: steveokard Date: Thu, 3 Jun 2021 01:13:52 -0400 Subject: [PATCH] created update script --- emacs_doom.zsh | 15 --------------- spacemacs.zsh | 17 +++++++++++++++++ update.zsh | 7 ++++--- 3 files changed, 21 insertions(+), 18 deletions(-) delete mode 100755 emacs_doom.zsh create mode 100644 spacemacs.zsh diff --git a/emacs_doom.zsh b/emacs_doom.zsh deleted file mode 100755 index 9318441..0000000 --- a/emacs_doom.zsh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/zsh -#This will install Doom for Emacs -#sudo add-apt-repository ppa:kelleyk/emacs -#cleanup old spacemacs -if [ -e ~/.emacs.d/spacemacs.mk ] - then - mv ~/.emacs.d ~/spacemacs.d -fi - -git clone https://github.com/hlissner/doom-emacs ~/.emacs.d - -#Install Dependencies -sudo apt install ripgrep markdown shellcheck fd-find - -~/.emacs.d/bin/doom install diff --git a/spacemacs.zsh b/spacemacs.zsh new file mode 100644 index 0000000..77b72b3 --- /dev/null +++ b/spacemacs.zsh @@ -0,0 +1,17 @@ +#!/bin/zsh +#This will install Spacemacs (again) +#cleanup +echo "Removing old emacs" +if [ -e ~/.emacs.d/] + then + mv ~/.emacs.d ~/doom.d +fi + +#Select Stable or Develop +read -p "Should we use the development version of emacs?" dist +if [[ $dist = y ]] then + git clone -b develop https://github.com/syl20bnr/spacemacs ~/.emacs.d +else + git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d +fi + diff --git a/update.zsh b/update.zsh index 9059412..cbb4e31 100755 --- a/update.zsh +++ b/update.zsh @@ -1,4 +1,5 @@ #!/bin/zsh -echo "Remove Emacs" -sudo apt autoremove emacs emacs-nox ripgrep markdown shellcheck fd-find -rm -r --interactive=never $HOME/.emacs.d $HOME/.doom.d +#delete current zsh config +rm ~/.zshrc ~/.zpreztorc ~/.zlogin ~/.zlogout ~/.zprofile ~/.zshenv +./udeps.sh +./prezto.zsh