[PYTHON] zsh settings that facilitate the use of virtualenv

It is assumed that all virtualenv directories are shared by .venv.

.zshrc


alias ve='source ./.venv/bin/activate'
vec() {
    PWD_FOR_VE_CREATE=`pwd`
    virtualenv ./.venv --prompt='('`basename $PWD_FOR_VE_CREATE`')'
}

Type vec to create a virtualenv directory (.venv) with the prompt name set to the name of the current directory.

When you type ve, source ./.venv/bin/activate is executed and virtualenv is enabled ninarimasu.

Recommended Posts

zsh settings that facilitate the use of virtualenv
pyenv-change the python version of virtualenv
This and that of the inclusion notation.
Use of virtualenv, Python's independent execution environment
Use the latest pip in a virtualenv environment
Specify the Python executable to use with virtualenv
Use the latest version of PyCharm on Ubuntu
One liner that lists the colors of matplotlib
A note about the python version of python virtualenv
python development environment -use of pyenv and virtualenv-
A story that reduces the effort of operation / maintenance
[Python] A program that counts the number of valleys
Let's use the API of the official statistics counter (e-Stat)
About data preprocessing of systems that use machine learning
Make a BOT that shortens the URL of Discord
# Function that returns the character code of a string
Let's use the Python version of the Confluence API module.
Note that the latest link of ius has changed
LINE Bot that notifies you of the stocks of interest
Ingenuity for automated testing of programs that use Redshift
Let's use the open data of "Mamebus" in Python
Generate that shape of the bottom of a PET bottle
The story that the return value of tape.gradient () was None
A story that analyzed the delivery of Nico Nama.
[Python] Use the Face API of Microsoft Cognitive Services
The attitude that programmers should have (The Zen of Python)
[Python] A program that compares the positions of kangaroos.
Script that changes the length of the sound with REAPER
Clustering G-means that automatically determines the number of clusters