Created
June 25, 2013 09:24
-
-
Save afgomez/5857159 to your computer and use it in GitHub Desktop.
function to change iTerm2 color profile from the terminal
This file contains hidden or 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 | |
# Change the iterm2 profile programatically | |
function iterm_profile { | |
if [[ -z $1 ]]; then | |
profile="Default" | |
else | |
profile=$1 | |
fi | |
echo -e "\033]50;SetProfile=$profile\a" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment