mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Use ruby 1.8 in the shebang for new commands
Using the ruby found via PATH would require the command to be tested with ruby 1.8, 1.9, 2.0 and possibly alternative ruby implementations (rubinus, jruby, …) so best to be explicit about which version the command is written for.
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
{ command = '#!/usr/bin/env ruby -wKU\nputs "Hello world"\n';
|
||||
{ command = '#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -wKU\nputs "Hello world"\n';
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ draggedFileExtensions = ( txt );
|
||||
command = '#!/usr/bin/env ruby -wKU\nputs "» #{ENV[\'TM_DROPPED_FILE\']}"\n';
|
||||
command = '#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -wKU\nputs "» #{ENV[\'TM_DROPPED_FILE\']}"\n';
|
||||
output = insertAsSnippet;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user