Sha256: 3d6c285ee586f717d72c28469dad6413e80d7c795c0828103e66dce376172062

Contents?: true

Size: 337 Bytes

Versions: 5

Compression:

Stored size: 337 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?(&File.method(:exist?)) && ARGV.any?(&File.method(:directory?))
  Mate::Tmproj.new(ARGV).open
else
  system mate, *ARGV
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mate-1.1.1.1 bin/tm
mate-1.1.1-darwin bin/tm
mate-1.1.0 bin/tm
mate-1.0.2.1 bin/tm
mate-1.0.2 bin/tm