Created
September 11, 2014 20:42
-
-
Save avishaan/dd03290429432b67538c to your computer and use it in GitHub Desktop.
Change iTerm color from command line
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
# 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"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.