comments #2

Merged
pt merged 1 commits from pt into master 2020-05-03 10:56:45 -04:00

View File

@ -1,20 +1,20 @@
#!/bin/bash
# outcome: replace existing dot files with symlinks pointing to new version controlled files
# setup folder pointers and target files
#-------------------------------------------------------setup folder pointers and target files-------------------------------------------------------------
dir=~/linux_user_setup
backup=~/linux_user_setup_restore
files=".bashrc .vimrc .tmux.conf .psqlrc"
# create the resore directory if it doesn't already exist
#------------------------------------------------ create the resore directory if it doesn't already exist--------------------------------------------------
if [ ! -d $backup ]
then
mkdir $backup
fi
# loop through each target file, move it and create a symlink to the replacements
#-------------------------------------- loop through each target file, move it and create a symlink to the replacements------------------------------------
for file in $files
do
@ -31,7 +31,8 @@ do
fi
done
#see if Vundle has been cloned yet and do so
#----------------------------------------------------------see if Vundle has been cloned yet and do so-----------------------------------------------------
if [ ! -d ~/.vim ]
then
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim