summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChet Henry2015-12-08 23:01:16 -0700
committerChet Henry2015-12-08 23:01:16 -0700
commit49edbaddac7f78ffba96bf7d79bd1a15006c05fc (patch)
tree1f507843fe64e9e32224ba1091e8950bae7e8b96
parent0fafa9479d8e7c56c25020f29bca54114d7e564f (diff)
downloadhcl-49edbaddac7f78ffba96bf7d79bd1a15006c05fc.tar.bz2
Simple bash completion inclusion in gem
-rw-r--r--README.markdown2
-rw-r--r--hcl.gemspec2
2 files changed, 2 insertions, 2 deletions
diff --git a/README.markdown b/README.markdown
index e08535e..52fb0ad 100644
--- a/README.markdown
+++ b/README.markdown
@@ -129,7 +129,7 @@ The above starts and immediately stops a one-hour timer with the given note.
You can enable auto-completion of commands, project ids, task ids and task aliases by adding this to your shell
configuration:
- source _hcl_completions
+ source $(ruby -e "print File.dirname(Gem.bin_path('hcl', 'hcl'))")/_hcl_completions
### Configuration Profiles
diff --git a/hcl.gemspec b/hcl.gemspec
index de91fe9..076f0ca 100644
--- a/hcl.gemspec
+++ b/hcl.gemspec
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
s.email = "zack@zackhobson.com"
s.description = "HCl is a command-line client for manipulating Harvest time sheets."
s.executables = ["hcl"]
- s.files = %w[LICENSE Rakefile Gemfile bin/hcl man/hcl.1] + Dir['*.markdown'] +
+ s.files = %w[LICENSE Rakefile Gemfile bin/hcl bin/_hcl_completions man/hcl.1] + Dir['*.markdown'] +
Dir['lib/**/*.rb'] + Dir['test/**/*.rb']
s.homepage = "https://zenhob.github.io/hcl/"
s.licenses = ["MIT"]