beforeRunningCommand nop command #!/usr/bin/env ruby project = ENV['TM_PROJECT_DIRECTORY'] env = ENV['RAILS_ENV'] require 'tempfile' tf = Tempfile.open("rails_console") tf.write(STDIN.read) tf.close() console_path = File.join(project, "script","console") out = `. ~/.profile; #{console_path} #{env} < #{tf.path}` out = <<-EOF <html> <body> <pre> #{out} </pre> </body> </html> EOF puts out input selection keyEquivalent ^@c name run in console output showAsHTML scope source.ruby.rails uuid AA30B1A5-53B9-44C1-8C01-2215ACDDED4A