Restoring iTerm2 settings form a backup of com.googlecode.iterm2.plist file
-
iTerm2 version: 3.1.7
-
OS version: 10.11.6
Detailed steps to reproduce the problem:
- Install iTerm2
- Open iTerm2 (so ~/Library/Preferences/com.googlecode.iterm2.plist is created)
- Close iTerm2
- Replace ~/Library/Preferences/com.googlecode.iterm2.plist with backed up version of same file
- Start iTerm2
- Settings are not restored, they have been overwritten
What happened:
~/Library/Preferences $ ls -l | grep iterm
-rw------- 1 marksmith staff 1888373 4 Aug 14:41 com.googlecode.iterm2.plist
-rw------- 1 marksmith staff 6136 4 Aug 14:04 com.googlecode.iterm2.plist.orig
~/Library/Preferences $ defaults read com.googlecode.iterm2
2019-08-04 14:41:32.042 defaults[6999:135247]
Domain /Users/marksmith/Library/Preferences/com.googlecode.iterm2 does not exist
After starting iTerm2:
~/Library/Preferences $ ls -l | grep iterm
-rw------- 1 marksmith staff 5553 4 Aug 14:43 com.googlecode.iterm2.plist
-rw------- 1 marksmith staff 6136 4 Aug 14:04 com.googlecode.iterm2.plist.orig
What should have happened:
Settings should be restored to iTerm2 rather than being overwritten