aboutsummaryrefslogtreecommitdiff
path: root/sync-home
blob: 4c9d6dbb094923b17c07380ab98de04d5358b124 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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