Add some dconf syncing using scpace
This commit is contained in:
parent
7fe5811cce
commit
2dae55b272
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue