Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.