subdivided init script for performance

This commit is contained in:
Stefen Auris 2017-09-26 11:10:14 -04:00
parent 746cf05696
commit 4dbe2af113
4 changed files with 29 additions and 10 deletions

9
fonts.zsh Normal file
View file

@ -0,0 +1,9 @@
# clone
git clone https://github.com/powerline/fonts.git --depth=1
# install
cd fonts
./install.sh
# clean-up a bit
cd ..
rm -rf fonts

23
init.sh
View file

@ -23,10 +23,6 @@ ln -s /home/`whoami`/stevset/.vim /home/`whoami`/.vim
ln -s /home/`whoami`/stevset/.vimrc /home/`whoami`/.vimrc
ln -s /home/`whoami`/stevset/.zsh /home/`whoami`/.zsh
#Download Antibody
curl -sL https://git.io/antibody | bash -s
#echo 'source <(antibody init)' >> ~/.zshrc
#set new shell
echo "set new shell to zsh"
if [[ $SHELL != "/bin/zsh" ]]
@ -34,12 +30,6 @@ then
chsh -s /bin/zsh
fi
#init vim and plugins
git submodule init
git submodule update
vim +PluginInstall! +qall
mv ~/.cache/antibody/https-COLON--SLASH--SLASH-github.com-SLASH-clvv-SLASH-fasd/fasd ~/.cache/antibody/https-COLON--SLASH--SLASH-github.com-SLASH-clvv-SLASH-fasd/fasd.zsh
#init git
echo -n "Would you like to configure your git name and email? (y/n) => "; read answer
if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then
@ -49,6 +39,19 @@ if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then
git config --global user.email "$email"
fi
#Download Antibody
curl -sL https://git.io/antibody | bash -s
#echo 'source <(antibody init)' >> ~/.zshrc
#Install fonts
./fonts.zsh
#init vim and plugins
./vim.zsh
#init spacemacs in the background
./spacemacs.zsh
echo "*******************************"
echo "* Restart your terminal *"
echo "*******************************"

2
spacemacs.zsh Normal file
View file

@ -0,0 +1,2 @@
#init spacemacs in the background
git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d

5
vim.zsh Normal file
View file

@ -0,0 +1,5 @@
#init vim and plugins
git submodule init
git submodule update
vim +PluginInstall! +qall
mv ~/.cache/antibody/https-COLON--SLASH--SLASH-github.com-SLASH-clvv-SLASH-fasd/fasd ~/.cache/antibody/https-COLON--SLASH--SLASH-github.com-SLASH-clvv-SLASH-fasd/fasd.zsh