view bin/pmuxinator @ 14:16464fcf03e8 default tip

Ignore .swp
author Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
date Tue, 05 Aug 2014 17:03:08 +0900
parents ea02332d9254
children
line wrap: on
line source

#!/usr/bin/env ruby
$: << File.expand_path("../../lib/", __FILE__)

require "thor"
require "pmuxinator"

if ARGV.length == 1
  name = ARGV[0]

  if Pmuxinator::Cli.new.command_list.include?(name)
    Pmuxinator::Cli.start
  elsif Pmuxinator::Config.exists?(name)
    Pmuxinator::Cli.new.start(name)
  else
    Pmuxinator::Cli.start
  end
else
  Pmuxinator::Cli.start
end