Skip to content

Commit

Permalink
tweak the way files are synched between ~/.config and ~/
Browse files Browse the repository at this point in the history
  • Loading branch information
stesla committed Nov 10, 2011
1 parent 2975010 commit 34a36a6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 39 deletions.
7 changes: 7 additions & 0 deletions copy-in.sh
@@ -0,0 +1,7 @@
#!/bin/bash

cd ${0%/*}

find home -type f -print | while read file; do
cp -v $(sed -e "s#home#$HOME#" <<< "$file") $file
done
9 changes: 9 additions & 0 deletions copy-out.sh
@@ -0,0 +1,9 @@
#!/bin/bash

cd ${0%/*}

find home -type f -print | while read file; do
dest=$(sed -e "s#home#$HOME#" <<< "$file")
mv -v $dest $dest.bak
cp -v $file $dest
done
39 changes: 0 additions & 39 deletions update.sh

This file was deleted.

0 comments on commit 34a36a6

Please sign in to comment.