1
0
Fork 0

add python virtualenv

This commit is contained in:
VirtuBox 2019-02-20 17:55:29 +01:00
parent f9b8f2cca7
commit 3fd7fefbc8
1 changed files with 6 additions and 0 deletions

View File

@ -188,6 +188,11 @@ EE_SHOW_LOG() {
}
_PYTHON_VIRTUALENV() {
virtualenv "$1"
source "$1/bin/activate"
}
CHEAT_CHECK() {
{
[ -x /usr/local/bin/cht.sh ] && { /usr/local/bin/cht.sh "$@"; }
@ -245,6 +250,7 @@ alias compile-nginx-ee=EE_NGINX_COMPILE
alias ee-mysql-optimize=EE_MYSQL_OPTIMIZATION
alias showlog=EE_SHOW_LOG
alias dd-benchmark=DD_BENCHMARK_DISK
alias vb-virtualenv=_PYTHON_VIRTUALENV
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then