-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automate installation of iTerm2 themes #140
Comments
Hi Trevor, I don't know of any process. That doesn't mean there isn't one, I just don't know if it exists. If someone has any ideas, by all means, submit them and I'd be happy to include! |
Cool, I was hoping that maybe it would be as easy as copying the files into the right place, or editing a configuration file (plist, json, etc.). Maybe someone will chime in someday, either here, or using another medium! :) Thank you! |
Well it's not just putting files in a location; they have to be imported. I don't know if there's a way to automatically trigger that |
Before you read the rest, 'no, I do not have a solution for this'. Question tickled my curiosity and did a bit of digging. I was actually looking for themes for Microsoft's colortool and saw this issue here. On Mac, assuming Trevor is using iTerm2, I think to be able to do simulate import you would need to convert the theme info into a format that iTerm2 plist( I did a dump of it in pristine form: and compared it to what happens after I pick up a color theme (Belafonte Day.theme). Here is what I saw:
.......< cut the rest, this is enough to make the point >
I went ahead and used python's plistlib to check the contents of that file as well. `> g = plistlib.readPlist('/Users/adil/Library/Preferences/com.googlecode.iTerm2.plist')
` So, I guess import process is converting binary data, and even the names in .terminal file into values that are meaningful to iTerm2 (probably here somewhere: https://github.com/gnachman/iTerm2/blob/master/ColorPicker/ColorPicker/CPKColorNamer.m) I maybe on the wrong path here, but thought I would share anyway. |
Interesting research! I'll be curious to hear if you get further! Thanks |
I am not sure if I am missing something: not spending too much time reading the question. But, in iterm2, where you import colorschemes, click on top scheme, and hold down shift, then click on bottom scheme, click open (import them) before doing this, git clone this repo. |
@chuckplantain That works for importing all of the themes manually. The OP was asking about doing it automatically so that it could be scripted (i.e., new machine setup, etc) |
This is an old thread, but in case anyone's interested, this seems to work for me to do a scripted install of iTerm: Bare Installs
Note that the above steps will only work reliably on a bare machine, because until iTerm starts up, there is no existing preferences file in ~/Library/Preferences for cfprefsd to cache. Existing SetupsIf, like me, you use multiple Macs and want to propagate preferences that you've saved (above) to another machine, you can't simply copy the preferences file into place, because if iTerm is running,
Now, when you start iTerm again, it should pick up your new preferences. |
Hey folks, previously I'd copy and paste across my theme settings, now I use the included 'Solarized Dark' via (preferences > profiles > colors > color presets… : With one additional setting being to the 'Minimum Contrast'. I'm wondering if anyone has any idea how I could automate these 2 steps please? |
I came up with this pretty dirty hack here: |
Command below appears to do the trick without opening hundreds of terminal windows when you
|
I love these themes, thank you for documenting and sharing them on GitHub. My MacBook was just reimaged this week, and I lost all the themes that I had [manually] installed before.
Right now, the installation directions don't contain any automated installation steps. It would be really awesome if I could simply do a
git clone
, and then run some script to install the themes.I can help contribute this capability, if someone can describe the process to me. Let me know.
Cheers,
Trevor Sullivan
The text was updated successfully, but these errors were encountered: