MOD: updated python 3 aliases in support of new pip module

This commit is contained in:
JohnE 2018-10-10 11:45:45 -07:00
parent 58129149a3
commit 79cb486cb6
1 changed files with 18 additions and 6 deletions

View File

@ -1,18 +1,30 @@
# pip should only run if there is a virtualenv currently activated
export PIP_REQUIRE_VIRTUALENV=true
# Python virtualenv
# Python 2 (python 2 is losing support fast)
# alias venv='virtualenv'
# Python 3
#
alias pip3='python3 -m pip'
alias venv3='python3 -m venv'
venv3.a () {
source $1/bin/activate;
}
# using a global virtural environment location, but I usually put it in the project path
# to reduce my own confusion =)
SRC_DIRECTORY="/Volumes/malloc-dev/virtenvs"
alias venv='virtualenv'
alias venv3='virtualenv -p python3'
alias venv.cd="cd $SRC_DIRECTORY"
venv.a () {
alias venv3.cd="cd $SRC_DIRECTORY"
venv3.aa () {
source $SRC_DIRECTORY/$1/bin/activate;
}
venv.ls () {
venv3.ls () {
ll $SRC_DIRECTORY
}
# python interpreter w/auto complete
# pip install bpython
bbpython () {