Compare commits
No commits in common. "eb885bc3470c5649efc117394ef7dc3e5d957da3" and "1b6500ffca88389a3252445e53759dc952a96cb7" have entirely different histories.
eb885bc347
...
1b6500ffca
9
setup.sh
9
setup.sh
@ -1,20 +1,20 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# outcome: replace existing dot files with symlinks pointing to new version controlled files
|
# 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
|
dir=~/linux_user_setup
|
||||||
backup=~/linux_user_setup_restore
|
backup=~/linux_user_setup_restore
|
||||||
files=".bashrc .vimrc .tmux.conf .psqlrc"
|
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 ]
|
if [ ! -d $backup ]
|
||||||
then
|
then
|
||||||
mkdir $backup
|
mkdir $backup
|
||||||
fi
|
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
|
for file in $files
|
||||||
do
|
do
|
||||||
@ -31,8 +31,7 @@ do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
#----------------------------------------------------------see if Vundle has been cloned yet and do so-----------------------------------------------------
|
#see if Vundle has been cloned yet and do so
|
||||||
|
|
||||||
if [ ! -d ~/.vim ]
|
if [ ! -d ~/.vim ]
|
||||||
then
|
then
|
||||||
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
|
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
|
||||||
|
Loading…
Reference in New Issue
Block a user