macOS


To undo defaults write commands, you can simply run the corresponding defaults delete