]> git.donarmstrong.com Git - bin.git/blobdiff - new_home_directory
* add total element to the invoice template
[bin.git] / new_home_directory
index 2233e3c6be03371c18aa3c56ecb1df16fec6d32e..7b05658a18c118a29b3f6ba5eddecd2d9e2567f7 100755 (executable)
@@ -19,9 +19,11 @@ mkdir .home_modules;
 )
 # make a home backup directory
 mkdir home_backup;
-mv .wgetrc home_backup/;
-mv .svn home_backup/;
-mv .sversionrc home_backup/;
+for a in .wgetrc .svn .sversionrc .subversion .bash_profile .bash_logout .bashrc .ssh; do
+    if [ -e $a ]; then
+       mv $a home_backup/;
+    fi;
+done;
 mkdir .sa.d;
 ln -s ~/.home_modules/*/sa_* .sa.d/;
 # run the appropriate command to set the symlinks correctly
@@ -30,4 +32,8 @@ cat -<<EOF> .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