.bash_completion.d/virtualenv
author Oleksandr Gavenko <gavenkoa@gmail.com>
Wed, 29 Mar 2023 23:42:06 +0300
changeset 1018 831e2c1bf980
parent 734 da0dc50393b6
permissions -rw-r--r--
Completed migration from ~/devel to ~/work.

# -*- 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