<div dir="ltr"><div><div>Hi Varun, <br><br></div>Thanks for bringing this in. Very useful !!<br><br></div>--Humble<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 16, 2014 at 3:32 PM, Varun Shastry <span dir="ltr">&lt;<a href="mailto:vshastry@redhat.com" target="_blank">vshastry@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
<br>
The patch (<a href="http://review.gluster.org/7979" target="_blank">http://review.gluster.org/<u></u>7979</a>) currently merged in upstream adds the bash command/tab completion (<a href="https://en.wikipedia.org/wiki/Command-line_completion" target="_blank">https://en.wikipedia.org/<u></u>wiki/Command-line_completion</a>) utility for gluster commands. This is an option which saves many keystrokes and thereby saving engineers/users time and energy while using gluster. Please do use it if you think it is useful.<br>

<br>
Currently few of the commands (quota, geo-replication, barrier, profile, set, reset and top) are completed. Will send the patch for completion of all the remaining commands.<br>
<br>
Example:<br>
@-upstream$ gluster volume [TAB][TAB]<br>
add-brick        create           heal list             quota            replace-brick start            stop<br>
barrier          delete           help log              rebalance        reset statedump        sync<br>
clear-locks      geo-replication  info profile          remove-brick     set status           top<br>
@-upstream$ gluster volume quota [TAB][TAB]<br>
test-vol1        test-vol2        gluster-vol1<br>
@-upstream$ gluster volume quota test-vol2 [TAB][TAB]<br>
alert-time          disable hard-timeout        list soft-timeout<br>
default-soft-limit  enable limit-usage         remove<br>
@-upstream$ gluster volume quota test-vol2<br>
<br>
<br>
Installation:<br>
<br>
RPM: Included in the rpm, so ready to use after installation.<br>
<br>
Source: Goto SOURCE_DIR/extras/command-<u></u>completion/<br>
        make install<br>
        or<br>
        manually copy the gluster.bash to /etc/bash_completion.d/ (cp extras/command-completion/<u></u>gluster.bash /etc/bash_completion.d/<u></u>gluster)<br>
<br>
To the current bash session: source extras/command-completion/<u></u>gluster.bash<br>
<br>
Thanks<span class="HOEnZb"><font color="#888888"><br>
Varun Shastry<br>
______________________________<u></u>_________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br>
<a href="http://supercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://supercolony.gluster.<u></u>org/mailman/listinfo/gluster-<u></u>users</a><br>
</font></span></blockquote></div><br></div>