Created
April 20, 2016 12:29
-
-
Save dekz/4cc3a0b775b334fb885c7618efa8653d to your computer and use it in GitHub Desktop.
Custom iTerm2 Build Script
This file contains hidden or 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
#!/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