Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

tweak up the commands to source the rvm environment if it's available

commit 46267d1e030cb705603101efa6dba7019d2ef327 1 parent 2cf9bc1
@UnderpantsGnome UnderpantsGnome authored dchelimsky committed
View
5 Commands/Alternate File.tmCommand
@@ -5,7 +5,10 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>#!/usr/bin/env sh
+ <string>#!/usr/bin/env bash
+
+. "$TM_BUNDLE_SUPPORT/lib/rvm_textmate"
+
cat &lt;&lt;'RUBYEOF' &gt; /tmp/textmate-command-$$.rb
require ENV['TM_BUNDLE_SUPPORT'] + "/lib/spec/mate/switch_command"
View
5 Commands/Run Focussed Specification.tmCommand
@@ -5,7 +5,10 @@
<key>beforeRunningCommand</key>
<string>saveActiveFile</string>
<key>command</key>
- <string>#!/usr/bin/env sh
+ <string>#!/usr/bin/env bash
+
+. "$TM_BUNDLE_SUPPORT/lib/rvm_textmate"
+
cat &lt;&lt;'RUBYEOF' &gt; /tmp/textmate-command-$$.rb
require ENV['TM_BUNDLE_SUPPORT'] + "/lib/spec/mate"
View
5 Commands/Run Last Examples file.tmCommand
@@ -5,7 +5,10 @@
<key>beforeRunningCommand</key>
<string>saveActiveFile</string>
<key>command</key>
- <string>#!/usr/bin/env sh
+ <string>#!/usr/bin/env bash
+
+. "$TM_BUNDLE_SUPPORT/lib/rvm_textmate"
+
cat &lt;&lt;'RUBYEOF' &gt; /tmp/textmate-command-$$.rb
require ENV['TM_BUNDLE_SUPPORT'] + "/lib/spec/mate"
View
5 Commands/Run Specifications - Normal.tmCommand
@@ -5,7 +5,10 @@
<key>beforeRunningCommand</key>
<string>saveActiveFile</string>
<key>command</key>
- <string>#!/usr/bin/env sh
+ <string>#!/usr/bin/env bash
+
+. "$TM_BUNDLE_SUPPORT/lib/rvm_textmate"
+
cat &lt;&lt;'RUBYEOF' &gt; /tmp/textmate-command-$$.rb
require ENV['TM_BUNDLE_SUPPORT'] + "/lib/spec/mate"
View
5 Commands/Run Specifications in selected files or directories.tmCommand
@@ -5,7 +5,10 @@
<key>beforeRunningCommand</key>
<string>saveModifiedFiles</string>
<key>command</key>
- <string>#!/usr/bin/env sh
+ <string>#!/usr/bin/env bash
+
+. "$TM_BUNDLE_SUPPORT/lib/rvm_textmate"
+
cat &lt;&lt;'RUBYEOF' &gt; /tmp/textmate-command-$$.rb
require ENV['TM_BUNDLE_SUPPORT'] + "/lib/spec/mate"
View
5 Commands/Save spec and remember.tmCommand
@@ -5,7 +5,10 @@
<key>beforeRunningCommand</key>
<string>saveActiveFile</string>
<key>command</key>
- <string>#!/usr/bin/env sh
+ <string>#!/usr/bin/env bash
+
+. "$TM_BUNDLE_SUPPORT/lib/rvm_textmate"
+
cat &lt;&lt;'RUBYEOF' &gt; /tmp/textmate-command-$$.rb
require ENV['TM_BUNDLE_SUPPORT'] + "/lib/spec/mate"
View
2  Support/lib/rvm_textmate
@@ -0,0 +1,2 @@
+[[ -f "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
+[[ -f "$TM_PROJECT_DIRECTORY/.rvmrc" ]] && . "$TM_PROJECT_DIRECTORY/.rvmrc"
Please sign in to comment.
Something went wrong with that request. Please try again.