Add some dconf syncing using scpace
This commit is contained in:
parent
7fe5811cce
commit
2dae55b272
|
@ -82,12 +82,26 @@ function pushdot {
|
||||||
else
|
else
|
||||||
git commit -a -m "$@" && git push -u origin main
|
git commit -a -m "$@" && git push -u origin main
|
||||||
fi
|
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 -
|
cd -
|
||||||
}
|
}
|
||||||
|
|
||||||
function getdot {
|
function getdot {
|
||||||
cd "$DOT_DIR" || return 1
|
cd "$DOT_DIR" || return 1
|
||||||
git pull && ./copy.sh
|
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
|
cd - > /dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue