subdivided init script for performance
This commit is contained in:
parent
746cf05696
commit
4dbe2af113
4 changed files with 29 additions and 10 deletions
23
init.sh
23
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 "*******************************"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue