How do I make sbopkg's bash-completion pick up the SBo-git repository (-current) rather than SBo?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
SBo = slackbuilds, afaik where you grab a single slackbuild and build the source. The stuff to change is in the first few lines of a slackbuild.
For more complicated & automagic stuff, you probably need slackpkg, which is a totally different animal.
Bash completion is down to what bash knows. For instance, I have only one file bginning with 'g'in my homedir; so if I type 'g<Tab> in bash, it will complete the filename. You left us short on more specific information. You'd be better posting again, with your actual problem, as most of probably aren't on the same page as you.
I'm not a Slacker, but as I understand it from looking at the completion code, you don't need to touch it at all. All the relevant settings are in /etc/sbopkg/sbopkg.conf:
sbotools is another option if you want -current support for SBo. The various tools (sboremove, sboinstall, sboupgrade, etc) come with zsh completions. Would be cool if someone would convert those to bash
SBo = slackbuilds, afaik where you grab a single slackbuild and build the source. The stuff to change is in the first few lines of a slackbuild.
He's talking about using a particular interface to SBo (sbopkg), but he wants it to use the development repo of SBo instead of the usual public one for stable (and have the bash completions work, which come from extra/bash-completion in this case).
Quote:
Originally Posted by business_kid
For more complicated & automagic stuff, you probably need slackpkg, which is a totally different animal.
slackpkg is about installing from pre-prepared packages. There's the slackpkg+ addon to make it easy to use additional repos, although this is not the same as SBo, which provides scripts to build additional software from source.
Quote:
Originally Posted by business_kid
Bash completion is down to what bash knows. For instance, I have only one file bginning with 'g'in my homedir; so if I type 'g<Tab> in bash, it will complete the filename. You left us short on more specific information. You'd be better posting again, with your actual problem, as most of probably aren't on the same page as you.
And bash can "know more" if someone writes a completion for a particular program E.g., if /usr/share/bash-completion/completions/sbopkg exists, and you type: sbopkg <tab>, then the logic of the completion file will kick in. Zsh has a very nice completion system by the way, although I only use it interactive, #!/usr/bin/env bash for scripts.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.