termrc 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9bdb6f623e2791684233d464ef4ea133c3567749
4
- data.tar.gz: f2aaf51b170e19187f7569efb7658d40d9c3e6bf
3
+ metadata.gz: b1a78e12e43b40860409e8eb4350ad140baa85ab
4
+ data.tar.gz: 6759c63e3ff8804eeae89109f21338c74f6c9676
5
5
  SHA512:
6
- metadata.gz: a1a0b134f50364c5a6798bb5bdf97beb73b6fed435b06b2378754affda00c690884fa4c72d2f1b0ea90b349c5f86cf23136102a778db43b436c69420aa1acf7f
7
- data.tar.gz: 36f3aa31a516894ed3dcf1da71bae55ea0ef9ac7c14c4897d41e20ec13aa82a44279a3daf58c96ff3ece0ee01fb92db2938791d4f0e8eedc89ab8d96522af2e4
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
@@ -15,7 +15,6 @@ namespace :gem do
15
15
  desc "release"
16
16
  task :release do
17
17
  gems = Dir.glob("*.gem").length
18
- puts gems
19
18
  raise "0 or > 1 gem in directory; aborting!" if gems != 1
20
19
  puts %x[gem push *.gem]
21
20
  puts %x[rm -rf *.gem]
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, Options: --folder=<folder>)'
31
- method_option :folder, :type => :string, :required => false
32
- def list
33
- folder = options[:folder] || '.'
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, Arg 0: file (optional) )'
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.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.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-02 00:00:00.000000000 Z
11
+ date: 2013-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor