iTerm2 ships with a collection of app icons that can be shown in the tab bar. If you'd like to add to it, here are the steps to follow:
- Get a grayscale version of the icon.
- Produce a 16x16 and a 32x32 PNG file (non-retina and retina, respectively). These images must be licensed compatibly with GPL v2.
- Fork https://github.com/gnachman/iTerm2.git
- Add your PNGs to
ThirdParty/hyper-tab-icons-plus/png/. They should be named
[email protected]for the 16x16 and 32x32 image, respectively.
ThirdParty/hyper-tab-icons-plus/graphic_icons.jsonby adding an entry for your app. It'll be a dictionary entry from the app name to the names of processes that should use that image. For example
"myapp": [ "myapp", "other-name-for-myapp" ]
ThirdParty/hyper-tab-icons-plus/graphic_colors.json. Add an entry for the color to use. For example,
"myapp": "#FF0000",. Avoid colors that won't look good against very light or very dark backgrounds.
- Submit a pull request. Indicate where the graphic came from so I can verify that its license is compatible.