From 049cf2d73a51482ee5fba859549b0f62c013dc84 Mon Sep 17 00:00:00 2001 From: Yann Date: Sun, 1 Nov 2009 13:10:52 -0500 Subject: [PATCH] + "update via Git" command --- Commands/Update Bundle via Git.tmCommand | 26 ++++++++++++++++++++++++ info.plist | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 Commands/Update Bundle via Git.tmCommand diff --git a/Commands/Update Bundle via Git.tmCommand b/Commands/Update Bundle via Git.tmCommand new file mode 100644 index 0000000..50542f7 --- /dev/null +++ b/Commands/Update Bundle via Git.tmCommand @@ -0,0 +1,26 @@ + + + + + beforeRunningCommand + nop + command + cd "$TM_BUNDLE_PATH" + +echo "<pre>" +[ -d ".git" ] && git pull +[ ! -d .git ] && echo "You must install the bundle using Git in order to update via this command. More info: http://github.com/minimaldesign/mCSS.tmbundle" + +osascript -e 'tell app "TextMate" to reload bundles' + +echo "</pre>" + input + selection + name + Update Bundle via Git + output + showAsHTML + uuid + FC73E843-A683-44FD-ADE4-45049DAC14C6 + + diff --git a/info.plist b/info.plist index a3101d6..d5aedfc 100644 --- a/info.plist +++ b/info.plist @@ -499,6 +499,7 @@ ordering C06F4F5E-AF7F-4C65-8B4B-0FDF41F1BC27 + FC73E843-A683-44FD-ADE4-45049DAC14C6 D6D0BEB2-DF32-4762-ABC1-3465116C220A 3A4062A8-C24A-4EBD-9D17-481D2F670EFA D27FBAE9-1D8D-4D42-A0A5-F1020B09F3DF @@ -761,6 +762,7 @@ 11B3AF3A-E77D-4D95-8BF0-E66002B1AF28 78BA52A1-6539-4EAD-8652-36534A88F143 70E14B2B-4EE3-41C9-A74B-F23B4954C915 + 3CDEC63C-E880-4A63-AE3A-33DA2BF8A387 uuid 3CDEC63C-E880-4A63-AE3A-33DA2BF8A387