Skip to content

Instantly share code, notes, and snippets.

@EinLinuus
Created January 3, 2024 00:32
Show Gist options
  • Save EinLinuus/63b29d14c99438cbaac97374643b3eeb to your computer and use it in GitHub Desktop.
Save EinLinuus/63b29d14c99438cbaac97374643b3eeb to your computer and use it in GitHub Desktop.
EinLinuus iTerm2 Profile

iTerm2 Profile

The following JSON file is a custom profile for iTerm2.

Screenshots

CleanShot 2024-01-03 at 01 23 42@2x

Installation

You can import it by

  1. downloading the JSON file
  2. opening the iTerm2 preferences
  3. selecting the "Profiles" tab
  4. Bottom left: "Other Actions" -> "Import JSON Profiles"

Font

This profile uses Fira Code as default font.

You can also enable ligatures, but keep in mind that it may reduce performance:

  1. Open the profile in the iTerm2 settings
  2. Select the "Text" tab
  3. In the "Font" section, check the "Use ligatures" box

Test the colors

You can test the colors using the script attached to this gist:

./colortest.sh
#!/bin/bash
# This script is used to test terminal color capability.
# Usage: ./colortest.sh
T='gYw' # The test text
echo -e "\n 40m 41m 42m 43m\
44m 45m 46m 47m";
for FGs in ' m' ' 1m' ' 30m' '1;30m' ' 31m' '1;31m' ' 32m' \
'1;32m' ' 33m' '1;33m' ' 34m' '1;34m' ' 35m' '1;35m' \
' 36m' '1;36m' ' 37m' '1;37m';
do FG=${FGs// /}
echo -en " $FGs \033[$FG $T "
for BG in 40m 41m 42m 43m 44m 45m 46m 47m;
do echo -en "$EINS \033[$FG\033[$BG $T \033[0m";
done
echo;
done
{
"Right Option Key Sends" : 0,
"Tags" : [
],
"Ansi 12 Color" : {
"Red Component" : 0.65340105231189227,
"Color Space" : "sRGB",
"Blue Component" : 0.9196014404296875,
"Alpha Component" : 1,
"Green Component" : 0.7744012187631597
},
"Ansi 6 Color" : {
"Red Component" : 0.58039215686274515,
"Color Space" : "sRGB",
"Blue Component" : 0.80784313725490198,
"Alpha Component" : 1,
"Green Component" : 0.74509803921568629
},
"Ansi 7 Color" : {
"Red Component" : 0.90196078431372551,
"Color Space" : "sRGB",
"Blue Component" : 0.93725490196078431,
"Alpha Component" : 1,
"Green Component" : 0.9137254901960784
},
"Bold Color" : {
"Green Component" : 1,
"Red Component" : 1,
"Blue Component" : 1
},
"Ansi 8 Color" : {
"Red Component" : 0.32622159740232581,
"Color Space" : "sRGB",
"Blue Component" : 0.440399169921875,
"Alpha Component" : 1,
"Green Component" : 0.35884377573619169
},
"Ansi 9 Color" : {
"Red Component" : 0.9460906982421875,
"Color Space" : "sRGB",
"Blue Component" : 0.5708256682719367,
"Alpha Component" : 1,
"Green Component" : 0.53911311861429567
},
"Ansi 5 Color" : {
"Red Component" : 0.68235294117647061,
"Color Space" : "sRGB",
"Blue Component" : 0.6705882352941176,
"Alpha Component" : 1,
"Green Component" : 0.5607843137254902
},
"Rows" : 25,
"Default Bookmark" : "No",
"Use Non-ASCII Font" : false,
"Non-ASCII Anti Aliased" : true,
"Use Bright Bold" : true,
"Ansi 10 Color" : {
"Red Component" : 0.8654378319688476,
"Color Space" : "sRGB",
"Blue Component" : 0.7469552602406111,
"Alpha Component" : 1,
"Green Component" : 0.9736175537109375
},
"Ambiguous Double Width" : false,
"Jobs to Ignore" : [
"rlogin",
"ssh",
"slogin",
"telnet"
],
"Ansi 15 Color" : {
"Red Component" : 0.96234309862909717,
"Color Space" : "sRGB",
"Blue Component" : 1,
"Alpha Component" : 1,
"Green Component" : 0.97489539908606482
},
"Foreground Color" : {
"Green Component" : 0.73333334922790527,
"Red Component" : 0.73333334922790527,
"Blue Component" : 0.73333334922790527
},
"Bound Hosts" : [
],
"Working Directory" : "~",
"Blinking Cursor" : false,
"Use Tab Color" : true,
"Sync Title" : false,
"Prompt Before Closing 2" : false,
"BM Growl" : true,
"Command" : "",
"Description" : "Default",
"Disable Window Resizing" : true,
"Mouse Reporting" : true,
"Screen" : -1,
"Selection Color" : {
"Green Component" : 0.8353000283241272,
"Red Component" : 0.70980000495910645,
"Blue Component" : 1
},
"Columns" : 80,
"Idle Code" : 0,
"Ansi 13 Color" : {
"Red Component" : 0.8497772216796875,
"Color Space" : "sRGB",
"Blue Component" : 0.83512590773716511,
"Alpha Component" : 1,
"Green Component" : 0.69838014210472465
},
"Custom Command" : "No",
"ASCII Anti Aliased" : true,
"Non Ascii Font" : "Monaco 12",
"Vertical Spacing" : 1,
"Use Bold Font" : true,
"Option Key Sends" : 0,
"Selected Text Color" : {
"Green Component" : 0,
"Red Component" : 0,
"Blue Component" : 0
},
"Background Color" : {
"Red Component" : 0.18431372549019609,
"Color Space" : "sRGB",
"Blue Component" : 0.24705882352941178,
"Alpha Component" : 1,
"Green Component" : 0.20392156862745098
},
"Character Encoding" : 4,
"Ansi 11 Color" : {
"Red Component" : 0.9047698974609375,
"Color Space" : "sRGB",
"Blue Component" : 0.57826601264423516,
"Alpha Component" : 1,
"Green Component" : 0.80249155325418542
},
"Use Italic Font" : true,
"Unlimited Scrollback" : false,
"Keyboard Map" : {
"0xf700-0x260000" : {
"Text" : "[1;6A",
"Action" : 10
},
"0x37-0x40000" : {
"Text" : "0x1f",
"Action" : 11
},
"0x32-0x40000" : {
"Text" : "0x00",
"Action" : 11
},
"0xf709-0x20000" : {
"Text" : "[17;2~",
"Action" : 10
},
"0xf70c-0x20000" : {
"Text" : "[20;2~",
"Action" : 10
},
"0xf729-0x20000" : {
"Text" : "[1;2H",
"Action" : 10
},
"0xf72b-0x40000" : {
"Text" : "[1;5F",
"Action" : 10
},
"0xf705-0x20000" : {
"Text" : "[1;2Q",
"Action" : 10
},
"0xf703-0x260000" : {
"Text" : "[1;6C",
"Action" : 10
},
"0xf700-0x220000" : {
"Text" : "[1;2A",
"Action" : 10
},
"0xf701-0x280000" : {
"Text" : "0x1b 0x1b 0x5b 0x42",
"Action" : 11
},
"0x38-0x40000" : {
"Text" : "0x7f",
"Action" : 11
},
"0x33-0x40000" : {
"Text" : "0x1b",
"Action" : 11
},
"0xf703-0x220000" : {
"Text" : "[1;2C",
"Action" : 10
},
"0xf701-0x240000" : {
"Text" : "[1;5B",
"Action" : 10
},
"0xf70d-0x20000" : {
"Text" : "[21;2~",
"Action" : 10
},
"0xf702-0x260000" : {
"Text" : "[1;6D",
"Action" : 10
},
"0xf729-0x40000" : {
"Text" : "[1;5H",
"Action" : 10
},
"0xf706-0x20000" : {
"Text" : "[1;2R",
"Action" : 10
},
"0x34-0x40000" : {
"Text" : "0x1c",
"Action" : 11
},
"0xf700-0x280000" : {
"Text" : "0x1b 0x1b 0x5b 0x41",
"Action" : 11
},
"0x2d-0x40000" : {
"Text" : "0x1f",
"Action" : 11
},
"0xf70e-0x20000" : {
"Text" : "[23;2~",
"Action" : 10
},
"0xf702-0x220000" : {
"Text" : "[1;2D",
"Action" : 10
},
"0xf703-0x280000" : {
"Text" : "0x1b 0x1b 0x5b 0x43",
"Action" : 11
},
"0xf700-0x240000" : {
"Text" : "[1;5A",
"Action" : 10
},
"0xf707-0x20000" : {
"Text" : "[1;2S",
"Action" : 10
},
"0xf70a-0x20000" : {
"Text" : "[18;2~",
"Action" : 10
},
"0x35-0x40000" : {
"Text" : "0x1d",
"Action" : 11
},
"0xf70f-0x20000" : {
"Text" : "[24;2~",
"Action" : 10
},
"0xf703-0x240000" : {
"Text" : "[1;5C",
"Action" : 10
},
"0xf701-0x260000" : {
"Text" : "[1;6B",
"Action" : 10
},
"0xf702-0x280000" : {
"Text" : "0x1b 0x1b 0x5b 0x44",
"Action" : 11
},
"0xf72b-0x20000" : {
"Text" : "[1;2F",
"Action" : 10
},
"0x36-0x40000" : {
"Text" : "0x1e",
"Action" : 11
},
"0xf708-0x20000" : {
"Text" : "[15;2~",
"Action" : 10
},
"0xf701-0x220000" : {
"Text" : "[1;2B",
"Action" : 10
},
"0xf70b-0x20000" : {
"Text" : "[19;2~",
"Action" : 10
},
"0xf702-0x240000" : {
"Text" : "[1;5D",
"Action" : 10
},
"0xf704-0x20000" : {
"Text" : "[1;2P",
"Action" : 10
}
},
"Window Type" : 0,
"Blur Radius" : 15.995827792553188,
"Cursor Type" : 2,
"Background Image Location" : "",
"Blur" : true,
"Scrollback Lines" : 1000,
"Send Code When Idle" : false,
"Close Sessions On End" : true,
"Terminal Type" : "xterm-256color",
"Visual Bell" : true,
"Flashing Bell" : false,
"Silence Bell" : false,
"Ansi 14 Color" : {
"Red Component" : 0.67043031349749072,
"Color Space" : "sRGB",
"Blue Component" : 0.93316650390625,
"Alpha Component" : 1,
"Green Component" : 0.86068753756626393
},
"ASCII Ligatures" : false,
"Name" : "EinLinuus",
"Cursor Text Color" : {
"Green Component" : 1,
"Red Component" : 1,
"Blue Component" : 1
},
"Shortcut" : "",
"Tab Color" : {
"Red Component" : 0.18431372549019609,
"Color Space" : "sRGB",
"Blue Component" : 0.24705882352941178,
"Alpha Component" : 1,
"Green Component" : 0.20392156862745098
},
"Cursor Color" : {
"Green Component" : 0.73333334922790527,
"Red Component" : 0.73333334922790527,
"Blue Component" : 0.73333334922790527
},
"Ansi 1 Color" : {
"Red Component" : 0.70196078431372544,
"Color Space" : "sRGB",
"Blue Component" : 0.42352941176470588,
"Alpha Component" : 1,
"Green Component" : 0.40000000000000002
},
"Horizontal Spacing" : 1,
"Ansi 3 Color" : {
"Red Component" : 0.90196078431372551,
"Color Space" : "sRGB",
"Blue Component" : 0.57647058823529407,
"Alpha Component" : 1,
"Green Component" : 0.80000000000000004
},
"Custom Directory" : "Yes",
"Link Color" : {
"Red Component" : 1,
"Color Space" : "sRGB",
"Blue Component" : 1,
"Alpha Component" : 1,
"Green Component" : 1
},
"Transparency" : 0,
"Ansi 0 Color" : {
"Red Component" : 0.23529411764705882,
"Color Space" : "sRGB",
"Blue Component" : 0.31764705882352939,
"Alpha Component" : 1,
"Green Component" : 0.25882352941176473
},
"Normal Font" : "FiraCode-Regular 18",
"Guid" : "64DDCA9C-3A1F-4438-B3B2-E366D41B22CF",
"Ansi 2 Color" : {
"Red Component" : 0.6588235294117647,
"Color Space" : "sRGB",
"Blue Component" : 0.56862745098039214,
"Alpha Component" : 1,
"Green Component" : 0.74117647058823533
},
"Ansi 4 Color" : {
"Red Component" : 0.52941176470588236,
"Color Space" : "sRGB",
"Blue Component" : 0.74509803921568629,
"Alpha Component" : 1,
"Green Component" : 0.62745098039215685
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment