From 05f8f35da4c3955610fe0bc8ce956a452ee47647 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Sun, 6 Dec 2020 22:20:08 -0500 Subject: [PATCH] include cloning powerline fonts and tmux plugin manager to facilitate tmux-resurrect --- setup.sh | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/setup.sh b/setup.sh index 3ac05c9..015dcff 100755 --- a/setup.sh +++ b/setup.sh @@ -30,6 +30,44 @@ do ln -s $dir/$file ~/$file done +#----------------------------------------------------------install power line fonts------------------------------------------------------------------------ + +if [ ! -d ~/fonts ] +then + while true; do + read -p "do you want to install powerline fonts from https://github.com/powerline/fonts?" yn + case $yn in + [Yy]* ) + git clone https://github.com/powerline/fonts; + cd fonts; + ./install.sh; + break;; + [Nn]* ) + exit;; + * ) echo "Please answer yes or no.";; + esac + done +fi + + +#----------------------------------------------------------install tmux plugin manager and tmux resurrect-------------------------------------------------- + +if [ ! -d ~/.tmux/plugins/tpm ] +then + while true; do + read -p "do you want to install the tmux plugin manager from https://github.com/tmux-plugins/tpm" yn + case $yn in + [Yy]* ) + git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm; + break;; + [Nn]* ) + exit;; + * ) echo "Please answer yes or no.";; + esac + done +fi + + #----------------------------------------------------------see if Vundle has been cloned yet and do so----------------------------------------------------- if [ ! -d ~/.vim ]