install.fairie/home/dot_local/bin/executable_backup

13 lines
349 B
Text
Raw Normal View History

2023-11-29 23:39:08 -08:00
#!/usr/bin/env bash
backupMacPrefs() {
2023-12-24 22:50:02 -08:00
if [ -d /Applications ] && [ -d /System ]; then
if command -v macprefs > /dev/null; then
2024-05-27 20:50:11 -07:00
gum log -sl info 'Backing up macOS preferences with macprefs'
2023-12-24 22:50:02 -08:00
macprefs backup -t system_preferences startup_items shared_file_lists app_store_preferences internet_accounts
2023-11-29 23:39:08 -08:00
fi
2023-12-24 22:50:02 -08:00
fi
2023-11-29 23:39:08 -08:00
}
backupMacPrefs