Hacker News new | ask | show | jobs
by isbadawi 4361 days ago
I like this. I've used both virtualenvwrapper and pew before, but they both have lots of features I don't use. Using this plus some small shell functions like the below to create, list and delete virtualenvs is enough for me.

  function mkvirtualenv {
    virtualenv "$HOME/.virtualenvs/$1"
    if [ $# -eq 2 ]; then
      vex "$1" pip install -r "$2"
    fi
  }
  
  function lsvirtualenv {
    ls "$HOME/.virtualenvs"
  }
  
  function rmvirtualenv {
    rm -rf "$HOME/.virtualenvs/$1"
  }
1 comments

It looks like there is a lot of demand for --make/--remove options to vex so I will do those (and that should nearly approach the end of the new features I will do on vex).

Probably good to do some error checking on the arguments to mkvirtualenv and rmvirtualenv (sleepily hitting enter too early, etc.)