.bash_completion.d/virtualenv
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sat, 16 Dec 2023 18:07:34 +0200
changeset 1038 79c56b8fb8e0
parent 734 da0dc50393b6
permissions -rw-r--r--
Moved Bash completion for "hgsync" to "utils" module.

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