Skip to content

Instantly share code, notes, and snippets.

@DavidArsene
Created February 10, 2022 19:55
Show Gist options
  • Save DavidArsene/70da2f9c6ac6c19485dc0555ea205426 to your computer and use it in GitHub Desktop.
Save DavidArsene/70da2f9c6ac6c19485dc0555ea205426 to your computer and use it in GitHub Desktop.
#!/bin/bash
[ "$EUID" -ne 0 ] && echo "This script must be ran as root!" && exit 1
system=$(settings list system)
secure=$(settings list secure)
global=$(settings list global)
read -p "Press Enter after changing settings..."
echo
echo Differences for system:
diff --color <(echo "$system") <(settings list system)
echo Differences for secure:
diff --color <(echo "$secure") <(settings list secure)
echo Differences for global:
diff --color <(echo "$global") <(settings list global)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment