checks if we have X before installing fonts & emacs
This commit is contained in:
parent
857ba8da73
commit
755c33addf
1 changed files with 10 additions and 9 deletions
17
init.sh
17
init.sh
|
@ -1,16 +1,10 @@
|
||||||
#!/bin/zsh
|
#!/bin/zsh
|
||||||
#install pre-req.
|
#install pre-req.
|
||||||
echo "installing required packages"
|
echo "installing required packages"
|
||||||
sudo apt-get install tmux \
|
./deps.zsh
|
||||||
zsh \
|
|
||||||
vim \
|
|
||||||
powerline\
|
|
||||||
htop \
|
|
||||||
mc\
|
|
||||||
curl\
|
|
||||||
emacs
|
|
||||||
|
|
||||||
#remove existing configs, if they exist
|
#remove existing configs, if they exist
|
||||||
|
echo "removing symlinks"
|
||||||
rm -ri ~/.tmux.conf
|
rm -ri ~/.tmux.conf
|
||||||
rm -ri ~/.zsh
|
rm -ri ~/.zsh
|
||||||
rm -ri ~/.vimrc
|
rm -ri ~/.vimrc
|
||||||
|
@ -18,6 +12,7 @@ rm -ri ~/.vim
|
||||||
rm -ri ~/.zshrc
|
rm -ri ~/.zshrc
|
||||||
|
|
||||||
#make links
|
#make links
|
||||||
|
echo "making new symlinks"
|
||||||
ln -s /home/`whoami`/stevset/.tmux.conf /home/`whoami`/.tmux.conf
|
ln -s /home/`whoami`/stevset/.tmux.conf /home/`whoami`/.tmux.conf
|
||||||
ln -s /home/`whoami`/stevset/.zshrc /home/`whoami`/.zshrc
|
ln -s /home/`whoami`/stevset/.zshrc /home/`whoami`/.zshrc
|
||||||
ln -s /home/`whoami`/stevset/.vim /home/`whoami`/.vim
|
ln -s /home/`whoami`/stevset/.vim /home/`whoami`/.vim
|
||||||
|
@ -41,11 +36,17 @@ if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#Download Antibody
|
#Download Antibody
|
||||||
|
echo "downloading antibody"
|
||||||
curl -sL https://git.io/antibody | bash -s
|
curl -sL https://git.io/antibody | bash -s
|
||||||
#echo 'source <(antibody init)' >> ~/.zshrc
|
#echo 'source <(antibody init)' >> ~/.zshrc
|
||||||
|
|
||||||
#Install fonts
|
#Install fonts
|
||||||
|
if [[ -n "$SSH_CLIENT" ]]
|
||||||
|
then
|
||||||
|
break
|
||||||
|
else
|
||||||
./fonts.zsh
|
./fonts.zsh
|
||||||
|
fi
|
||||||
|
|
||||||
#init vim and plugins
|
#init vim and plugins
|
||||||
./vim.zsh
|
./vim.zsh
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue