ccri / cloud-local

Install script for a local 1 node cloud...no excuses folks
17 stars 5 forks source link

Enable shell completion for cloud-local.sh #29

Closed tkunicki closed 8 years ago

tkunicki commented 8 years ago

because I am lazy and forgetful. Hit [tab] after typing cloud-local.sh to get list of commands

jahhulbert-ccri commented 8 years ago

nice!

jdk2pq commented 8 years ago

jahhulbert-ccri commented 8 years ago

i figurd out why it didn't work for me...I don't actually have it on my path. I usually just run bin/cloud-local.sh

I wonder if there's a way to make it work for both.

to clarify what tab completes and not:

ahulbert@doubletrouble:~/dev/cloud-local$ bin/cloud-local.sh 
accumulo-1.6.5/     conf/               .git/               hadoop-2.6.4/       pkg/                templates/          zookeeper-3.4.6/    
bin/                data/               .gitignore          kafka_2.11-0.9.0.0/ README.md           tmp/                zookeeper.out       
ahulbert@doubletrouble:~/dev/cloud-local$ cd bin
ahulbert@doubletrouble:~/dev/cloud-local/bin$ ./cloud-local.sh 
clean        help         init         reconfigure  start        stop    

The doc says run bin/cloud-local.sh so maybe we should just update it and have people put CLOUD_HOME in their config or set it in config.sh

djr7m commented 8 years ago

It works for me if I source the config.sh first

tkunicki commented 8 years ago

I just went to look at this and even w/o cloud-local.sh in PATH it works for me as long as config.sh is sourced.

jahhulbert-ccri commented 8 years ago

0e8fc3c7c131fe341d9b1363993a20a18e5bf7c5