Sha256: 872da8b81d28ffb494f3eb128ed43d5d6fac0e6b79a1c01c2935db6e3ee35764

Contents?: true

Size: 304 Bytes

Versions: 2

Compression:

Stored size: 304 Bytes

Contents

#!/usr/bin/env ruby

begin
  require 'mate'
rescue LoadError
  require 'rubygems'
  require 'mate'
end

mate = (IO.popen('which -a mate', &:readlines).map(&:strip) - [__FILE__]).first

if !ARGV.empty? && ARGV.all?{ |arg| File.directory?(arg) }
  Mate::Tmproj.new(ARGV).open
else
  system mate, *ARGV
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mate-1.0.1 bin/tm
mate-1.0.0 bin/tm