add bash-completion and install argcomplete global into it

This commit is contained in:
Tim Snyder 2022-04-23 16:47:16 +00:00
parent 1c2d36e92b
commit 0dd1595024
1 changed files with 4 additions and 1 deletions

View File

@ -253,6 +253,7 @@ set -o pipefail
CONDA_PACKAGE_SPECS+=( autoconf automake libtool ) CONDA_PACKAGE_SPECS+=( autoconf automake libtool )
# other misc deps # other misc deps
CONDA_PACKAGE_SPECS+=( CONDA_PACKAGE_SPECS+=(
bash-completion \
sbt \ sbt \
ca-certificates \ ca-certificates \
mosh \ mosh \
@ -343,7 +344,9 @@ set -o pipefail
argcomplete_extra_args=() argcomplete_extra_args=()
if [[ "$INSTALL_TYPE" != system ]]; then if [[ "$INSTALL_TYPE" == system ]]; then
argcomplete_extra_args=( --dest "${CONDA_ENV_BIN}/../share/bash-completion/completions" )
else
# if we're aren't installing into a system directory, then initialize argcomplete # if we're aren't installing into a system directory, then initialize argcomplete
# with --user so that it goes into the home directory # with --user so that it goes into the home directory
argcomplete_extra_args=( --user ) argcomplete_extra_args=( --user )