From: Don Armstrong Date: Fri, 31 Jan 2014 00:13:53 +0000 (-0800) Subject: more work on new_home_directory X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=adfa486597b26723447c7d95cd18dfcb4cc1c972;p=bin.git more work on new_home_directory --- diff --git a/new_home_directory b/new_home_directory index 7118ac1..5711467 100755 --- a/new_home_directory +++ b/new_home_directory @@ -26,7 +26,7 @@ for pkg in mr vcsh; do done; # .config is currently a link; this indicates that we are dealing with my old configuration system -for a in .zsh .config; do +for a in .config; do if [ -L ${a} ]; then mv ${a} ${a}_bak; mkdir -p ${a}; @@ -50,6 +50,16 @@ else vcsh clone $GIT_BASE/mr.git mr; fi; mr checkout; + +for a in .zsh .ssh; do + if [ -L ${a} ]; then + mv ${a} ${a}_bak; + mr up; + mkdir -p ${a}; + cp -r ${a}_bak/* ${a}/; + fi; +done; + if [ ! -e .ssh/authorized_keys ]; then (cd .ssh/; ln authorized_keys_default authorized_keys -s;) fi;