Skip to content

Instantly share code, notes, and snippets.

@mdub
Created Mar 18, 2013
Embed
What would you like to do?
#! /usr/bin/ruby
file = ARGV.first || '.'
args = [file]
args.unshift("-w") unless File.directory?(file)
exec("subl", *args)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment