tummy 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -1
- data/Tmuxfile.erb +1 -1
- data/exe/tummy +17 -1
- data/lib/tummy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68a623f3ea08292162fb23244e4d205a3dbf1977
|
4
|
+
data.tar.gz: 979e16a770e741a38ff24c60d85450501dc973cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b800c787a752e80d3b83d1a2308118f5d3a8c2b4586e0d4fadeb0f1dd8e03aaa99239d3ed85f09bc0fe6641756a90c7ce3a1084b9e94139e325eadaf0e87fc7
|
7
|
+
data.tar.gz: ec6d5c2270ae981c2891b61863abdf7db650c7ee5ff6edcdf22acdc9f7aae9dda867a31d1abfd9a3aaa8bb3421386c7c6b97db8eb871d943ebc1054c3762e0be
|
data/README.md
CHANGED
@@ -1,7 +1,10 @@
|
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/tummy.svg)](https://rubygems.org/gems/tummy)
|
1
2
|
# Tummy
|
2
3
|
|
3
4
|
Use a Tmuxfile with your tmux configuration to easily manage sessions
|
4
5
|
|
6
|
+
![Demo](https://i.imgur.com/pBSixTt.gif)
|
7
|
+
|
5
8
|
## Installation
|
6
9
|
|
7
10
|
$ gem install tummy
|
@@ -22,7 +25,8 @@ window "src", [
|
|
22
25
|
|
23
26
|
window "server-iex", [
|
24
27
|
pane("iex -S mix phoenix.server"),
|
25
|
-
|
28
|
+
# the last argument is passed to tmux as raw arguments
|
29
|
+
pane("iex -S mix", :horizontal, "-l 20"),
|
26
30
|
pane("git status", :vertical),
|
27
31
|
]
|
28
32
|
|
data/Tmuxfile.erb
CHANGED
data/exe/tummy
CHANGED
@@ -98,6 +98,22 @@ end
|
|
98
98
|
|
99
99
|
# init a Tmuxfile
|
100
100
|
cmd = ARGV.first
|
101
|
+
if cmd.to_s.strip.downcase == "help"
|
102
|
+
puts <<-EOS
|
103
|
+
Usage:
|
104
|
+
|
105
|
+
# initialize a Tmuxfile
|
106
|
+
$ tummy init
|
107
|
+
|
108
|
+
# run a tummy session
|
109
|
+
$ tummy TmuxFilePath
|
110
|
+
|
111
|
+
# run a tmux session for the default `Tmuxfile`
|
112
|
+
$ tummy
|
113
|
+
EOS
|
114
|
+
exit(0)
|
115
|
+
end
|
116
|
+
|
101
117
|
if cmd.to_s.strip.downcase == "init"
|
102
118
|
if File.exists?("Tmuxfile")
|
103
119
|
puts "ERROR: Tmuxfile is already present in the current directory"
|
@@ -116,7 +132,7 @@ if cmd.to_s.strip.downcase == "init"
|
|
116
132
|
end
|
117
133
|
|
118
134
|
# open a session
|
119
|
-
file = "Tmuxfile"
|
135
|
+
file = ARGV.first || "Tmuxfile"
|
120
136
|
if !file || !File.exists?(file)
|
121
137
|
puts "#{file} not found in current directory"
|
122
138
|
puts "you can initialize a new file by running `tummy init`"
|
data/lib/tummy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tummy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Khaja Minhajuddin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|