Skip to content

Instantly share code, notes, and snippets.

@avishaan
Created September 11, 2014 20:42
Show Gist options
  • Save avishaan/dd03290429432b67538c to your computer and use it in GitHub Desktop.
Save avishaan/dd03290429432b67538c to your computer and use it in GitHub Desktop.
Change iTerm color from command line
# a couple alias to switch iterm window from dark to light
alias itermlight='echo -e "\033]50;SetProfile=light\a"'
alias itermdark='echo -e "\033]50;SetProfile=dark\a"'
@avishaan
Copy link
Author

add the .bash_profile to wherever your profile is, usually ~/.bash_profile . Make sure your iTerm profile names in the profiles tab matches the above bash_profile and you'll be good to go. iTerm will switch to that profile immediately. I use it to easily switch between light and dark solarized profiles when I move from the sun to the shade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment