huffshell 0.0.11 → 0.0.12
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.
- data/Gemfile +1 -0
- data/Gemfile.lock +3 -1
- data/Readme.md +2 -2
- data/bin/huffshell +1 -1
- data/lib/command/command_suggestor.rb +2 -2
- data/lib/shell/alias_checker.rb +1 -0
- data/lib/shell/alias_line.rb +5 -1
- data/lib/tree/word_tree.rb +2 -2
- data/lib/tree/word_tree_node.rb +1 -1
- metadata +4 -4
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
huffshell (0.0.
|
4
|
+
huffshell (0.0.12)
|
5
5
|
colorize
|
6
6
|
|
7
7
|
GEM
|
@@ -10,6 +10,7 @@ GEM
|
|
10
10
|
colorize (0.5.8)
|
11
11
|
diff-lcs (1.1.3)
|
12
12
|
multi_json (1.2.0)
|
13
|
+
rake (0.9.2.2)
|
13
14
|
rspec (2.10.0)
|
14
15
|
rspec-core (~> 2.10.0)
|
15
16
|
rspec-expectations (~> 2.10.0)
|
@@ -29,5 +30,6 @@ PLATFORMS
|
|
29
30
|
DEPENDENCIES
|
30
31
|
colorize
|
31
32
|
huffshell!
|
33
|
+
rake
|
32
34
|
rspec
|
33
35
|
simplecov
|
data/Readme.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
Huffshell
|
2
2
|
====================
|
3
3
|
|
4
|
-
Huffshell is a gem for
|
4
|
+
Huffshell is a gem for suggesting new aliases, programmatically.
|
5
5
|
|
6
|
-
Huffshell looks at your shell history and
|
6
|
+
Huffshell looks at your shell history and suggests aliases based on your typical usage. Memorable and short commands are suggested for the most common things you type to save you the most keystrokes.
|
7
7
|
|
8
8
|
For example, if you type 'git' 500 times and 'ls -l' 100 times, good aliases might be 'g' and 'll'. It could save you hundreds of keystrokes.
|
9
9
|
|
data/bin/huffshell
CHANGED
@@ -19,10 +19,10 @@ class CommandSuggestor
|
|
19
19
|
wordtree.root.children.keys
|
20
20
|
end
|
21
21
|
|
22
|
-
def
|
22
|
+
def to_tree
|
23
23
|
wordtree.root.map do |n|
|
24
24
|
cs = CommandSuggestion.new(n.word_list)
|
25
|
-
"#{n.
|
25
|
+
"#{n.to_tree.chomp} #{cs.to_s}"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
data/lib/shell/alias_checker.rb
CHANGED
data/lib/shell/alias_line.rb
CHANGED
data/lib/tree/word_tree.rb
CHANGED
data/lib/tree/word_tree_node.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: huffshell
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-08-20 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: colorize
|
16
|
-
requirement: &
|
16
|
+
requirement: &70272688512560 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70272688512560
|
25
25
|
description: A parser and recommendation system for your shell aliases based on your
|
26
26
|
shell history
|
27
27
|
email: paul.mckellar@gmail.com
|