Set default PROG in bash_autocomplete

By setting the default value of PROG to the basname of whatever the
filename is, we allow bash_autocomplete to be copied into
/etc/bash_completion.d without modification.
This commit is contained in:
Kevin Klues
2015-08-28 18:15:08 -07:00
parent 142e6cd241
commit 543102d9c3
2 changed files with 15 additions and 6 deletions

View File

@@ -1,5 +1,7 @@
#! /bin/bash
: ${PROG:=$(basename ${BASH_SOURCE})}
_cli_bash_autocomplete() {
local cur prev opts base
COMPREPLY=()