From 995dcdd55e676e10245d5ae13bf947c9c8a2942d Mon Sep 17 00:00:00 2001 From: "Rogelio J. Samour" Date: Thu, 7 Feb 2013 17:58:37 -0600 Subject: [PATCH] Move shell script under lib/hitch - The 'lib' directory should only contain a 'hitch.rb' file and 'hitch' directory --- README.md | 2 +- lib/hitch.rb | 2 +- lib/{ => hitch}/hitch.sh | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename lib/{ => hitch}/hitch.sh (100%) diff --git a/README.md b/README.md index 0449078..23d69f2 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Install:
for x in $(rvm list strings); do rvm use $x@global && gem install hitch; done
* hitch --setup >> ~/.bashrc - this prints out the necessary shell function and aliases you need to add to your ~/.bashrc or ~/.zshrc -* Or copy/paste [the code](lib/hitch.sh) into your ~/.bashrc or ~/.zshrc +* Or copy/paste [the code](lib/hitch/hitch.sh) into your ~/.bashrc or ~/.zshrc * As another option, copy/symlink the script to a separate file (e.g. `~/.bash/hitch.sh` or `/etc/profile.d/hitch.sh`) and source it. You can get the path using `hitch --setup-path`. Development: diff --git a/lib/hitch.rb b/lib/hitch.rb index 2960594..14fcab5 100644 --- a/lib/hitch.rb +++ b/lib/hitch.rb @@ -87,7 +87,7 @@ def self.group_domain end def self.setup_path - File.join(File.dirname(__FILE__), 'hitch.sh') + File.join(File.dirname(__FILE__), 'hitch', 'hitch.sh') end def self.print_setup_path diff --git a/lib/hitch.sh b/lib/hitch/hitch.sh similarity index 100% rename from lib/hitch.sh rename to lib/hitch/hitch.sh