Show dconf diff

This commit is contained in:
Sage Vaillancourt 2024-02-19 00:42:52 -05:00
parent f19cac4270
commit 2b0836d477
2 changed files with 4 additions and 0 deletions

View File

@ -116,6 +116,8 @@ alias j='journalctl -xefu'
alias hsearch='hearch'
alias d='docker'
alias diff='diff -u'
alias tmux="tmux attach || tmux"
alias caddyfile="sudo vim /etc/caddy/Caddyfile"

View File

@ -116,6 +116,8 @@ function getdot {
if command -v scpace &> /dev/null; then
rm /tmp/dconf-dump
scp -P 11275 'sage@sagev.space:~/dconf-dump' /tmp/dconf-dump
dconf-dump > /tmp/current-dconf-dump
git --no-pager diff --no-index /tmp/dconf-dump /tmp/current-dconf-dump
dconf load / < /tmp/dconf-dump || return 1
else
echo "An alias for scpace has not been defined on this device!"