From 52696a5e688d8ae0e4aed22d0b381fbc538f5b59 Mon Sep 17 00:00:00 2001 From: Abdulwahaab Ahmed Date: Thu, 2 Mar 2017 14:09:14 -0500 Subject: [PATCH] for loop and echo -ne --- install.sh | 44 +++++++++++++++++++++++++++++++++++--------- 1 file changed, 35 insertions(+), 9 deletions(-) diff --git a/install.sh b/install.sh index 3ab3dba..7ac3c6a 100644 --- a/install.sh +++ b/install.sh @@ -1,9 +1,35 @@ -curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ - https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim -git clone https://github.com/Abdulwahaab710/dotFiles -ln -s ./dotFiles/.vimrc ~/.vimrc -ln -s ./dotFiles/.vimrc_c++ ~/.vimrc_c++ -ln -s ./dotFiles/.vimrc_python ~/.vimrc_python -ln -s ./dotFiles/.vimrc_java ~/.vimrc_java -ln -s ./dotFiles/myFunctions.vim ~/myFunctions.vim -vim -c 'so %|PlugInstall' ~/.vimrc +#/bin/bash + +# installing vim plug +echo -ne ">> Installing vim plug\r" +sleep 1 +# curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ +# https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim + +echo -ne ">> \r" +echo -ne ">> clone the dot files directory\r" +sleep 1 +# git clone https://github.com/Abdulwahaab710/dotFiles + +# backing up vim +echo -ne ">> \r" +echo -ne ">> Backing up vim\r" +sleep 1 +# backupDir=$($HOME)/dotFilesBackup +# mkdir -p $backupDir +# mv $HOME/.vim $backupDir/.vim + +# Linking dotFiles +dotFiles=".vimrc .vimrc_c++ .vimrc_java .zshrc .khdrc .kwm myFunctions.vim" +for dotFile in $dotFiles; +do + echo -ne ">> \r" + echo -ne ">> Linking "$dotFile"\r" + sleep 1 + # ln -s ./dotFiles/$dotFile $dotFile +done + +echo -ne ">> \r" +echo -ne ">> Installing vim plugins\r" +sleep 1 +# vim -c 'so %|PlugInstall|qa' ~/.vimrc