Skip to content

Instantly share code, notes, and snippets.

@dekz
Created April 20, 2016 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dekz/4cc3a0b775b334fb885c7618efa8653d to your computer and use it in GitHub Desktop.
Save dekz/4cc3a0b775b334fb885c7618efa8653d to your computer and use it in GitHub Desktop.
Custom iTerm2 Build Script
#!/bin/bash
# Original idea from here: http://superuser.com/questions/810582/iterm-osx-terminal-change-text-margin-from-edge-of-window
# Download, unzip, clean up.
wget --quiet https://github.com/gnachman/iTerm2/archive/master.zip
unzip master.zip
rm master.zip
# Go into project directory.
cd iTerm2-master
# Fix margins. This allows iTerm to be full screen with no gaps around the window.
sed -i "s/#define MARGIN/#define MARGIN 4 \/\//g" sources/iTermTextDrawingHelper.h
sed -i "s/#define VMARGIN/#define VMARGIN 8 \/\//g" sources/iTermTextDrawingHelper.h
# Build it.
make
# Move the app out to the directory the script was run from.
mv build/Development/iTerm2.app ../.
# Clean up.
cd ..
rm -rf iTerm2-master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment