_virtualenvs() {
  if [ "${COMP_CWORD}" = 1 ]; then
    local cur=${COMP_WORDS[COMP_CWORD]}
    COMPREPLY=($(compgen -W "$(ls $WORKON_HOME)" -- "$cur"))
    # COMPREPLY=($(compgen -W "$(lsvirtualenv)" -- "$cur"))
  else
    COMPREPLY=()
  fi
}
complete -o default -F _virtualenvs workon rmvirtualenv
