Mercurial > hg > Members > atton > pmux
diff bin/pmuxinator @ 2:67a6071afec7
Rename tmuxinator -> pmuxinator
$ zmv **/*tmuxinator* **/*pmuxinator*
$ gsed -e 's/tmuxinator/pmuxinator/g' -i **/*.*
$ gsed -e 's/Tmuxinator/Pmuxinator/g' -i **/*.*
author | Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 21 Jul 2014 08:32:00 +0900 |
parents | bin/tmuxinator@39b72942a4d2 |
children | ea02332d9254 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/pmuxinator Mon Jul 21 08:32:00 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