diff bin/tmuxinator @ 0:39b72942a4d2

Clone tmuxinator from github https://github.com/tmuxinator/tmuxinator/tree/67140f4abfcf640f433f76310d6b927de06a58ac
author Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
date Mon, 21 Jul 2014 08:04:55 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/tmuxinator	Mon Jul 21 08:04:55 2014 +0900
@@ -0,0 +1,19 @@
+#!/usr/bin/env ruby
+$: << File.expand_path("../../lib/", __FILE__)
+
+require "thor"
+require "tmuxinator"
+
+if ARGV.length == 1
+  name = ARGV[0]
+
+  if Tmuxinator::Cli.new.command_list.include?(name)
+    Tmuxinator::Cli.start
+  elsif Tmuxinator::Config.exists?(name)
+    Tmuxinator::Cli.new.start(name)
+  else
+    Tmuxinator::Cli.start
+  end
+else
+  Tmuxinator::Cli.start
+end