[TxMt] tmTheme: Slate

Allan Odgaard throw-away-1 at macromates.com
Thu Nov 10 05:22:11 UTC 2005


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:
> 1) Open new document.
> 2) Type: echo "`date "+%S"`%2" | bc
> 3) 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)




More information about the textmate mailing list