Mercurial > hg > Members > atton > pmux
changeset 3:ea02332d9254
Rename bin file mux -> pmux
$ ln -s bin/pmuxinator bin/pmux
$ gsed -e 's/tmuxinator/pmuxinator/g' -i bin/*
$ gsed -e 's/Tmuxinator/Pmuxinator/g' -i bin/*
author | Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 21 Jul 2014 08:34:59 +0900 |
parents | 67a6071afec7 |
children | 73ee80dc9415 |
files | bin/mux bin/pmux bin/pmuxinator |
diffstat | 3 files changed, 26 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/mux Mon Jul 21 08:32:00 2014 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -tmuxinator \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/pmux Mon Jul 21 08:34:59 2014 +0900 @@ -0,0 +1,19 @@ +#!/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
--- a/bin/pmuxinator Mon Jul 21 08:32:00 2014 +0900 +++ b/bin/pmuxinator Mon Jul 21 08:34:59 2014 +0900 @@ -2,18 +2,18 @@ $: << File.expand_path("../../lib/", __FILE__) require "thor" -require "tmuxinator" +require "pmuxinator" 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) + if Pmuxinator::Cli.new.command_list.include?(name) + Pmuxinator::Cli.start + elsif Pmuxinator::Config.exists?(name) + Pmuxinator::Cli.new.start(name) else - Tmuxinator::Cli.start + Pmuxinator::Cli.start end else - Tmuxinator::Cli.start + Pmuxinator::Cli.start end