Created
April 11, 2017 13:14
-
-
Save kunst1080/0757dcc5f17ef8bec904ed4ea10fda54 to your computer and use it in GitHub Desktop.
change background color for iTerm (Mac)
This file contains 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 | |
R=$1 | |
G=$2 | |
B=$3 | |
/usr/bin/osascript <<EOF | |
tell application "iTerm" | |
tell current session of current window | |
set background color to {$(($R*65535/255)), $(($G*65535/255)), $(($B*65535/255))} | |
end tell | |
end tell | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment