[Samba] Bash-Completion for samba-tool

Matthieu Patou mat at samba.org
Mon Jun 1 13:54:12 MDT 2015


On 05/21/2015 01:02 PM, Stephan Brauer wrote:
> Hey list,
>
> arriving home from SambaXP, it was really nice. That darth vader cake was
> super sweet :-)
>
> Hearing some people talking about how much they'd like bash completion
> for `samba-tool`, I've put together an ugly script that does that.
>
> It's a very dumb script (I'm boldly calling it script), but it might make
> someones day a little bit easier.
>
> https://gist.github.com/ls42/0dca178759e42c04e685
>
> It does complete commands and subcommands of two levels, e.g.
>
> - samba-tool domain provision
> - samba-tool group addmember
>
> and so on can be completed. It also completes subcommands that are not
> valid (like samba-tool gpo addmember), since I just added a bunch of text
> to bash's `complete`.
>
> On Debian it can be saved under `/etc/bash_completion.d/` (does exist at
> least since jessie). A log-out/-in might be required. Or just source it.
>
> Stephan Brauer
Can you work with upstream distros to get it in ?

Should it be part of the samba package or from the bash packagE ?

-- 
Matthieu Patou
Samba Team
http://samba.org



More information about the samba mailing list