This macosx osascript script will toggle all terminal windows bright/dark.
# download this zip
# extract into ~/scripts/
rebash # reload shell
bright/dark/light # toggle color modes| #.bash_profile | |
| export GVIMCOLOR=slate | |
| alias bright="osascript ~/scripts/brighten_up.scpt \"Man Page\" &>/dev/null; export GVIMCOLOR=morning" | |
| alias dark="osascript ~/scripts/brighten_up.scpt \"Slate\" &>/dev/null; export GVIMCOLOR=slate" | |
| alias light="osascript ~/scripts/brighten_up.scpt \"Basic\" &>/dev/null; export GVIMCOLOR=morning" |
| #.gvimrc | |
| colorscheme=$GVIMCOLOR |
| # Set colorschemes of term and gvim | |
| on run argv | |
| tell application "Terminal" | |
| repeat with w from 1 to count windows | |
| repeat with t from 1 to count tabs of window w | |
| set current settings of tab t of window w to (first settings set whose name is item 1 of argv) | |
| end repeat | |
| end repeat | |
| end tell | |
| end run |