[TxMt] Set default bundle

Allan Odgaard throw-away-1 at macromates.com
Thu May 25 20:59:00 UTC 2006


On 25/5/2006, at 12:23, Soryu wrote:

>    moiraine:~ soryu$ defaults write com.macromates.textmate  
> OakDefaultBundleForNewBundleItems Soryu
>    moiraine:~ soryu$ defaults read com.macromates.textmate  
> OakDefaultBundleForNewBundleItems
>    Soryu
>
> like this. Now double-clicking a command file should save it in a  
> bundle called “Soryu”.

Although the value should be the UUID instead of the name, so:

    % cd ~/Library/tm/Bundles/Allan\ Odgaard’s\ Bundle.tmbundle
    % pl < info.plist|grep uuid
    uuid = "278DB32C-62E5-46D3-A42D-06F0E1BFFEC3";

And then:

    defaults write com.macromates.textmate  
OakDefaultBundleForNewBundleItems 278DB32C-62E5-46D3-A42D-06F0E1BFFEC3


Unrelated to this, but the ‘tm’ part of the path above is a symbolic  
link which expands to ‘Application Support/TextMate, can be created  
using:

    ln -s ~/Library/Application\ Support/TextMate ~/Library/tm




More information about the textmate mailing list