added test cases for installation
This commit is contained in:
parent
b3f914bd08
commit
59b7e1b5c4
1 changed files with 14 additions and 3 deletions
|
@ -1,6 +1,17 @@
|
|||
#!/bin/zsh
|
||||
#This will install Doom for Emacs
|
||||
git clone https://github.com/hlissner/doom-emacs ~/.emacs.d
|
||||
#Test for emacs and ripgrep
|
||||
|
||||
~/.emacs.d/bin/doom install
|
||||
if [ -e ~/.emacs.d/spacemacs.mk ]
|
||||
#cleanup old spacemacs
|
||||
mv ~/.emacs.d ~/spacemacs.d
|
||||
else
|
||||
git clone https://github.com/hlissner/doom-emacs ~/.emacs.d
|
||||
fi
|
||||
#Test for ripgrep
|
||||
if [ -e /usr/bin/rg ]
|
||||
~/.emacs.d/bin/doom install
|
||||
else
|
||||
echo "Ripgrep not detected, attempting to install!"
|
||||
sudo apt install ripgrep
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue