subdivided init script for performance
This commit is contained in:
parent
746cf05696
commit
4dbe2af113
4 changed files with 29 additions and 10 deletions
9
fonts.zsh
Normal file
9
fonts.zsh
Normal 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
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/.vimrc /home/`whoami`/.vimrc
|
||||||
ln -s /home/`whoami`/stevset/.zsh /home/`whoami`/.zsh
|
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
|
#set new shell
|
||||||
echo "set new shell to zsh"
|
echo "set new shell to zsh"
|
||||||
if [[ $SHELL != "/bin/zsh" ]]
|
if [[ $SHELL != "/bin/zsh" ]]
|
||||||
|
@ -34,12 +30,6 @@ then
|
||||||
chsh -s /bin/zsh
|
chsh -s /bin/zsh
|
||||||
fi
|
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
|
#init git
|
||||||
echo -n "Would you like to configure your git name and email? (y/n) => "; read answer
|
echo -n "Would you like to configure your git name and email? (y/n) => "; read answer
|
||||||
if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then
|
if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then
|
||||||
|
@ -49,6 +39,19 @@ if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then
|
||||||
git config --global user.email "$email"
|
git config --global user.email "$email"
|
||||||
fi
|
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 "*******************************"
|
||||||
echo "* Restart your terminal *"
|
echo "* Restart your terminal *"
|
||||||
echo "*******************************"
|
echo "*******************************"
|
||||||
|
|
2
spacemacs.zsh
Normal file
2
spacemacs.zsh
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
#init spacemacs in the background
|
||||||
|
git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d
|
5
vim.zsh
Normal file
5
vim.zsh
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue