.bash_completion.d/virtualenv
author Oleksandr Gavenko <gavenkoa@gmail.com>
Fri, 23 Dec 2022 20:26:07 +0200
changeset 1006 ad4478dd89fc
parent 734 da0dc50393b6
permissions -rw-r--r--
Avoid a warning when HG is operating via SSH: remote: tput: No value for $TERM and no -T specified

# -*- mode: sh; sh-shell-file: bash -*-

_virtualenv()
{
  local _opts="--version -h --help -v --verbose -q --quiet --clear --system-site-packages \
     --always-copy --unzip-setuptools --relocatable --no-setuptools --no-pip --extra-search-dir= --prompt= --python="
  local cur
  cur=${COMP_WORDS[COMP_CWORD]}
  case $cur in
    -*) COMPREPLY=( $(compgen -W '$_opts'  -- $cur) ) ;;
    *) COMPREPLY=( $(compgen -d -- $cur) )
  esac
  return 0
} &&
    complete -F _virtualenv virtualenv