From 2dae55b2721b9f748974927fccc2644b70c8df0b Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Sat, 17 Feb 2024 14:06:08 -0500 Subject: [PATCH] Add some dconf syncing using scpace --- fake_home/.zshrc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/fake_home/.zshrc b/fake_home/.zshrc index 4a2b8ba..8638525 100644 --- a/fake_home/.zshrc +++ b/fake_home/.zshrc @@ -82,12 +82,26 @@ function pushdot { else git commit -a -m "$@" && git push -u origin main fi + if command -v scpace &> /dev/null; then + dconf dump / > /tmp/dconf-dump || return 1 + scpace /tmp/dconf-dump 'sagev.space:~/dconf-dump' + rm /tmp/dconf-dump + else + echo "An alias for scpace has not been defined on this device!" + fi cd - } function getdot { cd "$DOT_DIR" || return 1 git pull && ./copy.sh + if command -v scpace &> /dev/null; then + scpace 'sagev.space:~/dconf-dump' /tmp/dconf-dump + dconf load / < /tmp/dconf-dump || return 1 + rm /tmp/dconf-dump + else + echo "An alias for scpace has not been defined on this device!" + fi cd - > /dev/null }