Compare commits
No commits in common. "b841fd7f420438ffd7052d875e2acc531218885e" and "eb885bc3470c5649efc117394ef7dc3e5d957da3" have entirely different histories.
b841fd7f42
...
eb885bc347
9
setup.sh
9
setup.sh
@ -3,8 +3,8 @@
|
||||
|
||||
#-------------------------------------------------------setup folder pointers and target files-------------------------------------------------------------
|
||||
|
||||
dir=~/dot_config
|
||||
backup=~/dot_config_backup
|
||||
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--------------------------------------------------
|
||||
@ -21,13 +21,14 @@ do
|
||||
#if the file is not a symlink the just _move_ it, otherwise _copy_ the linked file
|
||||
if [ ! -L $file ];
|
||||
then
|
||||
echo "moving $file to $backup"
|
||||
mv ~/$file $backup
|
||||
echo "snapping $file to be a new symlink to version controlled file in $dir"
|
||||
ln -s $dir/$file ~/$file
|
||||
else
|
||||
# if the target file is a symlink, copy the linked file
|
||||
cp $(readlink -f $file) $backup
|
||||
rm $file
|
||||
fi
|
||||
ln -s $dir/$file ~/$file
|
||||
done
|
||||
|
||||
#----------------------------------------------------------see if Vundle has been cloned yet and do so-----------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user