Sha256: 14f0ab8705663914b95e62ec7fcb9f62fbea37c55e289dbe741622e138274172

Contents?: true

Size: 271 Bytes

Versions: 7

Compression:

Stored size: 271 Bytes

Contents

#!/usr/bin/env ruby

require 'mate'

if !ARGV.empty? && ARGV.all?(&File.method(:exist?)) && ARGV.any?(&File.method(:directory?))
  Mate::Tmproj.new(ARGV).open
else
  mate = (IO.popen('which -a mate', &:readlines).map(&:strip) - [__FILE__]).first
  system mate, *ARGV
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mate-1.3.0 bin/tm
mate-1.2.1 bin/tm
mate-1.2.0 bin/tm
mate-1.1.6 bin/tm
mate-1.1.4 bin/tm
mate-1.1.3 bin/tm
mate-1.1.2 bin/tm