Skip to content

Instantly share code, notes, and snippets.

@HotFusionMan
Created January 11, 2011 15:53
Show Gist options
  • Save HotFusionMan/774601 to your computer and use it in GitHub Desktop.
Save HotFusionMan/774601 to your computer and use it in GitHub Desktop.
jEdit command line command for Mac OS X (strip off the .rb filename extension to make it look more like a typical Unix command line utility).
#!/usr/bin/env ruby
arguments = []
ARGV.each { |arg|
arguments << File.expand_path( arg )
}
system( "java -cp /Applications/jEdit.app/Contents/Resources/Java/jedit.jar:/System/Library/Java -Dapple.awt.textantialiasing=true -Dapple.laf.useScreenMenuBar=true -Dapple.awt.antialiasing=true org.gjt.sp.jedit.jEdit -background #{arguments.join( ' ' )} &" )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment