[Gluster-users] Bash completion for gluster
Humble Devassy Chirammal
humble.devassy at gmail.com
Mon Jun 16 10:10:00 UTC 2014
Hi Varun,
Thanks for bringing this in. Very useful !!
--Humble
On Mon, Jun 16, 2014 at 3:32 PM, Varun Shastry <vshastry at redhat.com> wrote:
> Hi All,
>
> The patch (http://review.gluster.org/7979) currently merged in upstream
> adds the bash command/tab completion (https://en.wikipedia.org/
> wiki/Command-line_completion) 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.
>
> 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.
>
> Example:
> @-upstream$ gluster volume [TAB][TAB]
> add-brick create heal list quota
> replace-brick start stop
> barrier delete help log rebalance
> reset statedump sync
> clear-locks geo-replication info profile remove-brick
> set status top
> @-upstream$ gluster volume quota [TAB][TAB]
> test-vol1 test-vol2 gluster-vol1
> @-upstream$ gluster volume quota test-vol2 [TAB][TAB]
> alert-time disable hard-timeout list soft-timeout
> default-soft-limit enable limit-usage remove
> @-upstream$ gluster volume quota test-vol2
>
>
> Installation:
>
> RPM: Included in the rpm, so ready to use after installation.
>
> Source: Goto SOURCE_DIR/extras/command-completion/
> make install
> or
> manually copy the gluster.bash to /etc/bash_completion.d/ (cp
> extras/command-completion/gluster.bash /etc/bash_completion.d/gluster)
>
> To the current bash session: source extras/command-completion/gluster.bash
>
> Thanks
> Varun Shastry
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://supercolony.gluster.org/mailman/listinfo/gluster-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20140616/9766e815/attachment.html>
More information about the Gluster-users
mailing list