Skip to content

Instantly share code, notes, and snippets.

View chanana's full-sized avatar
:octocat:

Shaurya Chanana chanana

:octocat:
View GitHub Profile
@chanana
chanana / gist:a8aefc9b00949d63b1a013607d045562
Last active December 10, 2018 23:06 — forked from dedy-purwanto/gist:11312110
Bulk remove iTerm2 color schemes.
# iTerm2 saves it's preferences in ~/Library/Preferences/com.googlecode.iterm2.plist in a binary format
# What you need to do is basically copy that somewhere, convert to xml and remove color schemes in the xml files.
$ cd /tmp/
$ cp ~/Library/Preferences/com.googlecode.iterm2.plist .
$ plutil -convert xml1 com.googlecode.iterm2.plist
$ vi com.googlecode.iterm2.plist
# Now remove the color schemes in the <key> and <dict> tags,
# to make it easier, record a macro in vi to remove the key (e.g: Desert/Solarized) using `dd`,
# and then remove its color dict with `dat` (delete around tag), and repeat the macro until