Last active
February 17, 2016 19:34
-
-
Save lucasefe/58c8f6e0f9525feb21eb to your computer and use it in GitHub Desktop.
Capture a preview of each color scheme applied to your own iTerm configuration.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The idea/use case behind this, is that after running it, you'll be able to quick view all the pngs | |
# with the previews and choose easily which one to import to iTerm. | |
clear | |
# get iterm window id | |
wid=$(osascript -e 'tell app "iTerm" to id of window 1'); | |
# print something, so when changing schemes, you can see how it's changing. | |
ls -la $HOME | |
# Change to wherever you have cloned https://github.com/mbadolato/iTerm2-Color-Schemes | |
cd iTerm2-Color-Schemes/schemes | |
# Make a dir to store all the screenshots | |
mkdir -p "../captures/" | |
for scheme in *.itermcolors; do | |
../tools/preview.rb "${scheme}" | |
screencapture -x -l${wid} "../captures/${scheme}.png" | |
done | |
# list all screenshots | |
ls -al ../captures |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment