Permalink
Browse files

New script "nutmbundle" installs the Nu.tmbundle automatically.

  • Loading branch information...
1 parent f172d71 commit c633b2e91b256d9f1ef0877d455c238ed1fad845 Tim Burks committed Aug 12, 2008
Showing with 10 additions and 0 deletions.
  1. +10 −0 tools/nutmbundle
View
10 tools/nutmbundle
@@ -0,0 +1,10 @@
+#!/bin/sh
+#
+# Install the Nu TextMate bundle from Jason Sallis' GitHub repository.
+# Warning: This will remove any existing Nu.tmbundle.
+#
+rm -rf ~/"Library/Application Support/TextMate/Bundles/Nu.tmbundle"
+mkdir -pv ~/"Library/Application Support/TextMate/Bundles/"
+cd ~/"Library/Application Support/TextMate/Bundles/"
+git clone git://github.com/jsallis/nu-tmbundle.git "Nu.tmbundle"
+osascript -e 'tell app "TextMate" to reload bundles'

2 comments on commit c633b2e

@drnic

Instead of rm -rf’ing the folder, clone the repo if the folder doesn’t exist, or “cd folder && git pull” if the folder does exist, perhaps?

@bjeanes

drnic, that doesn’t handle the case where the bundle isn’t a git repository. i.e. i personally just hit the download button to install my copy. In retrospect, making it a git clone probably would have been more useful, but the point still stands

Please sign in to comment.