Skip to content

Instantly share code, notes, and snippets.

@kunst1080
Created April 11, 2017 13:14
Show Gist options
  • Save kunst1080/0757dcc5f17ef8bec904ed4ea10fda54 to your computer and use it in GitHub Desktop.
Save kunst1080/0757dcc5f17ef8bec904ed4ea10fda54 to your computer and use it in GitHub Desktop.
change background color for iTerm (Mac)
#!/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