add python virtualenv
This commit is contained in:
parent
f9b8f2cca7
commit
3fd7fefbc8
6
mybashrc
6
mybashrc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue