.bash_completion.d/virtualenv
author Oleksandr Gavenko <gavenkoa@gmail.com>
Thu, 19 Feb 2015 22:59:47 +0200
changeset 726 926f9481feee
child 727 42d012e9ede1
permissions -rw-r--r--
virtualenv
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
726
926f9481feee virtualenv
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     1
# -*- mode: sh; sh-shell-file: bash -*-
926f9481feee virtualenv
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     2
926f9481feee virtualenv
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     3
_virtualenv()
926f9481feee virtualenv
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     4
{
926f9481feee virtualenv
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     5
   local _opts="--version -h --help -v --verbose -q --quiet --clear --system-site-packages \
926f9481feee virtualenv
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     6
     --always-copy --unzip-setuptools --relocatable --no-setuptools --no-pip --extra-search-dir= --prompt= --python="
926f9481feee virtualenv
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     7
   local cur
926f9481feee virtualenv
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     8
   cur=${COMP_WORDS[COMP_CWORD]}
926f9481feee virtualenv
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     9
   COMPREPLY=( $(compgen -W '$_opts'  -- $cur) )
926f9481feee virtualenv
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    10
   return 0
926f9481feee virtualenv
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    11
} &&
926f9481feee virtualenv
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    12
complete -F _virtualenv virtualenv
926f9481feee virtualenv
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    13