Bash completion file for Slackrepo
Just copy this file (as root) to /etc/bash_completion.d and then source it like this:
#> cp slackrepo.completion /etc/bash_completion.d/slackrepo
#> . /etc/bash_completion.d/slackrepo
You need to have bash-completion and of course slackrepo
If you want bash completion to be sourced everytime you run a shell add this at the beginning of your .bashrc file:
# turns on bash autocompletion
if [ -f /etc/profile.d/bash_completion.sh ]; then
. /etc/profile.d/bash_completion.sh
fi
The bash completion file for slackpkg
Feel free to open issues and contribute however you feel like, I know the code isn't perfect.
- Danilo 'danix' Macrì - Initial work - danix.xyz
This project is licensed under the GPLv3 License - see the LICENSE.md file for details