Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Exec args directly. Thanks, eventualbuddha

  • Loading branch information...
commit 00d338b59e5b919adb0f089144ab69069b9955a9 1 parent 0b1c6c6
@indirect authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 tm
View
5 tm
@@ -5,8 +5,7 @@ proj_files = ARGV.map do |a|
end
if ARGV.any? && proj_files.all?{|p| File.exist?(p) }
- exec %|open "#{proj_files.join('" "')}"|
+ exec 'open', *proj_files
else
- bash_args = ARGV.map{|s| s.gsub(' ', '\\ ') }
- exec %|mate #{bash_args.join(" ")}|
+ exec 'mate', *ARGV
end
Please sign in to comment.
Something went wrong with that request. Please try again.