Skip to content

Instantly share code, notes, and snippets.

@mthenw
Last active July 4, 2022 16:14
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mthenw/4e13b7af9a324a770eec85c82e9d9bba to your computer and use it in GitHub Desktop.
Save mthenw/4e13b7af9a324a770eec85c82e9d9bba to your computer and use it in GitHub Desktop.
iTerm2 configuration

screenshot 2017-09-01 11 26 55

  1. Download iTerm2 3.1 beta version (https://iterm2.com/downloads/beta/iTerm2-3_1_beta_8.zip)
  2. Use Dracula theme for iTerm2 https://draculatheme.com/iterm/
  3. Install oh-my-zsh https://github.com/robbyrussell/oh-my-zsh
  4. Install Dracula there for zsh https://draculatheme.com/zsh/
  5. Set pane margins:
    1. iTerm2 -> Preferences -> Advanced
    2. General section
      1. Set Width of left and right margins in terminal panes to 12
      2. Set Height of top and bottom margins in terminal panes to 12
  6. Use escape code for setting title bar background color (add it to rc file):
printf -- $'\033]6;1;bg;red;brightness;40\a\033]6;1;bg;green;brightness;42\a\033]6;1;bg;blue;brightness;54\a'
@aybasaran
Copy link

What did you mean while u were saying RC file?

@aybasaran
Copy link

.zshrc?

@mthenw
Copy link
Author

mthenw commented Nov 1, 2020

@d11pl3, yes, but I don't think this tutorial is still valid as it's pretty old.

@adamsiwiec
Copy link

From Twitter,

Update: in the most recent version, iTerm margin settings now more easily accessible from “Appearance” → “Panes”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment