On 09/11/2005, at 23.30, Charilaos Skiadas wrote:
Damn, it's a tie between slate and twilight. How to solve this?
Flip a coin:
- Open new document.
- Type: echo "`date "+%S"`%2" | bc
- Text->Execute Line inserting result
0 is slate, 1 is twilight.
Here's a refinement, select these two lines and ctrl-R to make TM switch to the theme as well :)
themes=($HOME/Library/Application\ Support/TextMate/Themes/ Slate.tmTheme /Applications/TextMate.app/Contents/SharedSupport/ Themes/Twilight.tmTheme) open "${themes[$(bc <<<$(date "+%S %%2"))]}"
(if you have Twilight in /Library or ~/Library, you'll need to change the path)