Add .sh files into the /etc/bash_completion.d/ directory and fresh your shell's session login. That is it.
>>> tree /etc/bash_completion.d/
/etc/bash_completion.d/
├── apport_completion
├── _comp_clamscan.sh
├── _comp_nodejs.sh
├── _comp_nginx.sh
├── dkms
├── git-prompt
└── grub
0 directories, 7 filesOr all .sh once at all.
cd /tmpgit clone https://github.com/redcursor/btc.gitfind btc -type f -name \*.sh | sudo xargs -I xxx mv xxx /etc/bash_completion.d/- close your session (terminal) and open it up again
>>> shopt -s
checkwinsize on
cmdhist on
complete_fullquote on
expand_aliases on
extglob on
extquote on
force_fignore on
histappend on
interactive_comments on
progcomp on # this should be on
promptvars on
sourcepath onif progcomp is not on turn it on;
>>> shopt -s progcomp- clamscan Clam AntiVirus is an open source (GPLv2) anti-virus toolkit, ...
source <(curl -sL https://raw.githubusercontent.com/redcursor/btc/master/clamscan/_comp_clamscan.sh)
- nginx HTTP and reverse proxy server, mail proxy server
source <(curl -sL https://raw.githubusercontent.com/redcursor/btc/master/nginx/_comp_nginx.sh)
- nodejs JavaScript runtime environment
source <(curl -sL https://raw.githubusercontent.com/redcursor/btc/master/nodejs/_comp_nodejs.sh)
- xargs build and execute command lines from standard input
source <(curl -sL https://raw.githubusercontent.com/redcursor/btc/master/xargs/_comp_xargs.sh)
- curly Speak curl for faster troubleshooting
source <(curl -sL https://raw.githubusercontent.com/redcursor/btc/master/curly/_comp_curly.sh)
- certbot EFF project to HTTPS every website
source <(curl -sL https://raw.githubusercontent.com/redcursor/btc/master/certbot/_comp_certbot.sh)
- ldc Linux Docker Configuration
source <(curl -sL https://raw.githubusercontent.com/redcursor/btc/master/ldc/_comp_ldc.sh)