[Samba] Bash-Completion for samba-tool
Stephan Brauer
sbrauer at mailbox.org
Thu May 21 14:02:22 MDT 2015
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
More information about the samba
mailing list