Skip to content

Commit

Permalink
Restore unison backup automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
tshu-w committed Aug 30, 2024
1 parent b34c5be commit 5c07d91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/unison/default.prf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Roots of the synchronization
## unison currently not support ~/$HOME in preference file
root = /Users/wangtianshu
root = /Users/wangtianshu/Library/Mobile Documents/com~apple~CloudDocs/Unison
prefer = newer
Expand Down
4 changes: 4 additions & 0 deletions darwin/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,9 @@ done
# Create Developer Directory
mkdir -p ~/Developer

# Unison restore
UNISON_DIR="$HOME/Library/Mobile Documents/com~apple~CloudDocs/Unison"
[ -d $UNISON_DIR ] && UNISON=$XDG_CONFIG_HOME/unison unison -batch -force $UNISON_DIR

# Apply macoS system settings
. "macOS.sh"

0 comments on commit 5c07d91

Please sign in to comment.