X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=new_home_directory;h=90ceb187e1a7f6a72efef75c448b51acfa91a15f;hb=c8ce0187542cc73ed80d5d5c46a5c4bd9beca949;hp=e6883ef135cfefdce788f44049ca44d3f049f2d5;hpb=16c52b8017da58869a9932a0f461ba73020a6c42;p=bin.git diff --git a/new_home_directory b/new_home_directory index e6883ef..90ceb18 100755 --- a/new_home_directory +++ b/new_home_directory @@ -19,9 +19,19 @@ mkdir .home_modules; ) # make a home backup directory mkdir home_backup; -mv .wgetrc .svn .sversionrc home_backup/; -# run the appropriate command to set the symlinks correctly -sh -c "$(awk -F "$(echo -ne '\t')" '{print $2}' ~/.home_modules/base/sa_base) ~/.home_modules;" +for a in .wgetrc .svn .sversionrc .subversion .bash_profile .bashrc .ssh; do + mv $a home_backup/; +done; mkdir .sa.d; ln -s ~/.home_modules/*/sa_* .sa.d/; -exec sa update; \ No newline at end of file +# run the appropriate command to set the symlinks correctly +~/bin/sa --hooks-only update +cat -< .sa.d/sa_local +~/bin +~/lib +EOF +# move back the .ssh stuff +if [ -e home_backup/.ssh ]; then + cp -f home_backup/.ssh/* .ssh/; +fi; +exec ~/bin/sa update; \ No newline at end of file