From 48b92aabb7c5622af285a85ea0964f28f31ff34b Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 31 Jan 2013 21:34:40 -0200 Subject: Adding sync-home --- sync-home | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 sync-home (limited to 'sync-home') diff --git a/sync-home b/sync-home new file mode 100755 index 0000000..4c9d6db --- /dev/null +++ b/sync-home @@ -0,0 +1,16 @@ +#!/bin/bash +# +# sync home folder across systems +# + +DEST="$1" + +if [ ! -z "$DEST" ]; then + profile="$DEST-home" + if [ -f "$HOME/.unison/$profile.prf" ]; then + unison $profile + else + echo "No such profile $HOME/.unison/$profile.prf" + exit 1 + fi +fi -- cgit v1.2.3