#!/usr/bin/env ruby if ARGV[0] command = "ix-#{ARGV[0]}" args = ARGV args.shift system(command, *args) else dir = File.dirname($0) Dir.glob("#{dir}/ix-*").each do |tool| puts "#{File.basename(tool)}" end end