News for hackers. Stuff that matters.
Re:ZSH Aliases by cxam on Tuesday May 26, 2020 @01:12PM (#23313713)
If you're working with Python projects and Virtualenv then this is a great alias to have (assuming you call it venv):

  alias venv=". venv/bin/activate"
Just cd to a project root and venv :)
Re:ZSH Aliases by maxioatic on Tuesday May 26, 2020 @01:55PM (#23314301)
I do something similar, although I use venv to create a new virtual environment and update pip and setuptools:

  alias venv='python3 -m venv venv && source venv/bin/activate && pip install --upgrade pip setuptools -q'
And then ae and de to activate/deactivate a venv:

  alias ae='source venv/bin/activate'
  alias de='deactivate'