termrc 0.1.1 → 0.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 +15 -3
- data/Rakefile +0 -1
- data/lib/termrc/cli.rb +5 -6
- data/termrc.gemspec +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: b1a78e12e43b40860409e8eb4350ad140baa85ab
|
4
|
+
data.tar.gz: 6759c63e3ff8804eeae89109f21338c74f6c9676
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 917c9dc5975ca098dbd8f097836fefe8bb8344ff49d3bc9f10b473f9f28357a4a2f9918c5a21824e131ae9718ab53326801f9d8a7b6310d82fd35a10db0b739b
|
7
|
+
data.tar.gz: f0564b6c2288586dad11ad41d9a1f2631159239f022a52233a82a1e19e2e5f22b359f9d85762141b75526368c1d716cb6c4e5f54c8b9454453bc66aba772b765
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
<img src="https://rawgithub.com/briangonzalez/termrc/master/images/osx.svg" width=25 style="margin-right: 10px"> termrc
|
3
3
|
======
|
4
|
-
Take your iTerm2 environments with you wherever you go.
|
4
|
+
Take your [iTerm2](http://www.iterm2.com/) environments with you wherever you go.
|
5
5
|
|
6
6
|
Description
|
7
7
|
-----------
|
@@ -17,7 +17,9 @@ $ termrc start
|
|
17
17
|
|
18
18
|
.termrc file
|
19
19
|
----------
|
20
|
-
The `.termrc` file is a [YAML](http://en.wikipedia.org/wiki/YAML) file which stores information about your project's environment. An environment, in this context, is an iTerm2 window with various panes, each with a different default command that is run when the pane opens. The `layout` dictates what your window looks like, while `commands` gives you a set of commands you can call for each pane.
|
20
|
+
The `.termrc` file is a [YAML](http://en.wikipedia.org/wiki/YAML) file which stores information about your project's environment. An environment, in this context, is an iTerm2 window with various panes, each with a different default command that is run when the pane opens. The `layout` dictates what your window looks like, while `commands` gives you a set of commands you can call for each pane.
|
21
|
+
|
22
|
+
Place the `.termrc file` at your project's root, then call `termrc start`. Voila!
|
21
23
|
|
22
24
|
**Example .termrc**
|
23
25
|
|
@@ -41,7 +43,17 @@ A `.termrc` file is a YAML file which requires two keys: `commands` and a `layou
|
|
41
43
|
|
42
44
|
<img src="https://rawgithub.com/briangonzalez/termrc/master/images/termrc-screen.png">
|
43
45
|
|
44
|
-
You can supply an optional third key, `root`, which indicates the root directory you'd like each command to be run inside of.
|
46
|
+
You can supply an optional third key, `root`, which indicates the root directory you'd like each command to be run inside of. Have a look at [this project's](https://github.com/briangonzalez/termrc/blob/master/.termrc) `.termrc` file for an example.
|
47
|
+
|
48
|
+
CLI
|
49
|
+
---
|
50
|
+
|
51
|
+
```bash
|
52
|
+
$ termrc start # Start termrc file (Shortcut: s, Argument 0: file (optional) )
|
53
|
+
$ termrc create # Create termrc file
|
54
|
+
$ termrc list # List termrc files in folder (Shortcut: l, Argument 0: folder (optional))
|
55
|
+
```
|
56
|
+
|
45
57
|
|
46
58
|
License
|
47
59
|
--------
|
data/Rakefile
CHANGED
data/lib/termrc/cli.rb
CHANGED
@@ -27,11 +27,10 @@ module Termrc
|
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
-
desc 'list', 'List termrc files (Shortcut: l,
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
say "Looking for termrc files in '#{folder}':", :yellow
|
30
|
+
desc 'list', 'List termrc files in folder (Shortcut: l, Argument 0: folder (optional))'
|
31
|
+
def list(folder='.')
|
32
|
+
folder_description = folder == "." ? 'current folder' : "'#{folder}'"
|
33
|
+
say "Looking for termrc files in #{folder_description}:", :yellow
|
35
34
|
|
36
35
|
a = `find #{folder} | grep -w \.termrc$`
|
37
36
|
say a
|
@@ -39,7 +38,7 @@ module Termrc
|
|
39
38
|
say "None found.", :red if a.length < 1
|
40
39
|
end
|
41
40
|
|
42
|
-
desc 'start', 'Start termrc file (Shortcut: s,
|
41
|
+
desc 'start', 'Start termrc file (Shortcut: s, Argument 0: file (optional) )'
|
43
42
|
def start(file=false)
|
44
43
|
file = file || '.termrc'
|
45
44
|
raise Thor::Error.new "File '#{file}'' does not exist!" unless File.exist? file
|
data/termrc.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |gem|
|
|
9
9
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
10
10
|
gem.executables << 'termrc'
|
11
11
|
gem.name = "termrc"
|
12
|
-
gem.version = '0.1.
|
12
|
+
gem.version = '0.1.2'
|
13
13
|
gem.license = 'MIT'
|
14
14
|
|
15
15
|
gem.add_runtime_dependency 'thor', '~> 0.18.0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: termrc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Gonzalez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|