From: Silvio Rhatto Date: Thu, 31 Jan 2013 23:34:40 +0000 (-0200) Subject: Adding sync-home X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=48b92aabb7c5622af285a85ea0964f28f31ff34b;p=scripts.git Adding 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