From 4dbe2af1130395fb071b4fd730cd0d7e9e920d89 Mon Sep 17 00:00:00 2001 From: steveokard Date: Tue, 26 Sep 2017 11:10:14 -0400 Subject: [PATCH] subdivided init script for performance --- fonts.zsh | 9 +++++++++ init.sh | 23 +++++++++++++---------- spacemacs.zsh | 2 ++ vim.zsh | 5 +++++ 4 files changed, 29 insertions(+), 10 deletions(-) create mode 100644 fonts.zsh create mode 100644 spacemacs.zsh create mode 100644 vim.zsh diff --git a/fonts.zsh b/fonts.zsh new file mode 100644 index 0000000..6cc059e --- /dev/null +++ b/fonts.zsh @@ -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 + diff --git a/init.sh b/init.sh index 8bb1f2f..04b137e 100755 --- a/init.sh +++ b/init.sh @@ -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 "*******************************" diff --git a/spacemacs.zsh b/spacemacs.zsh new file mode 100644 index 0000000..fea749c --- /dev/null +++ b/spacemacs.zsh @@ -0,0 +1,2 @@ +#init spacemacs in the background +git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d diff --git a/vim.zsh b/vim.zsh new file mode 100644 index 0000000..eb0963c --- /dev/null +++ b/vim.zsh @@ -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