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