added python virtual environment aliases
This commit is contained in:
parent
2e4f2fc4af
commit
1af3038939
|
@ -1,3 +1,6 @@
|
|||
# brew openssl
|
||||
alias ossl='/usr/local/Cellar/openssl/1.0.2/bin/openssl'
|
||||
export OSSL=/usr/local/Cellar/openssl/1.0.2/bin/openssl
|
||||
|
||||
#openssl
|
||||
alias sha="$OSSL sha1"
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
# pip should only run if there is a virtualenv currently activated
|
||||
export PIP_REQUIRE_VIRTUALENV=true
|
||||
# cache pip-installed packages to avoid re-downloading
|
||||
export PIP_DOWNLOAD_CACHE=$HOME/.pip/cache
|
||||
|
||||
# fix an error is Mavericks that is fixed with an update later (running old version)
|
||||
# clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
|
||||
export CFLAGS=-Qunused-arguments
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
# brew openssl
|
||||
alias ossl='/usr/local/Cellar/openssl/1.0.2/bin/openssl'
|
||||
export OSSL=/usr/local/Cellar/openssl/1.0.2/bin/openssl
|
||||
|
||||
# Mac Shortcuts
|
||||
alias eject='drutil tray eject'
|
||||
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
#set architecture flags
|
||||
export ARCHFLAGS="-arch x86_64"
|
||||
|
||||
# user-installed binaries exec (homebrew binaries)
|
||||
export PATH=/usr/local/bin:$PATH
|
||||
|
||||
|
@ -15,6 +12,7 @@ source ~/.bash_servers
|
|||
source ~/.bash_tools
|
||||
source ~/.bash_dev
|
||||
source ~/.bash_android
|
||||
source ~/.bash_python
|
||||
|
||||
# prompt
|
||||
PS1="[\u@\h:\W] "
|
||||
|
@ -22,3 +20,6 @@ PS1="[\u@\h:\W] "
|
|||
# terminal colors
|
||||
export CLICOLOR=1
|
||||
# export LSCOLORS=Bxfxcxdxbxegedabagacad
|
||||
|
||||
#set architecture flags
|
||||
export ARCHFLAGS="-arch x86_64"
|
||||
|
|
|
@ -0,0 +1,37 @@
|
|||
# pip should only run if there is a virtualenv currently activated
|
||||
export PIP_REQUIRE_VIRTUALENV=true
|
||||
# cache pip-installed packages to avoid re-downloading
|
||||
export PIP_DOWNLOAD_CACHE=$HOME/.pip/cache
|
||||
|
||||
# Python virtualenv
|
||||
SRC_DIRECTORY="/Volumes/malloc-dev/virtenvs"
|
||||
alias venv='virtualenv'
|
||||
alias venv3='virtualenv -p python3'
|
||||
alias venv.cd="cd $SRC_DIRECTORY"
|
||||
venv.a () {
|
||||
source $SRC_DIRECTORY/$1/bin/activate;
|
||||
}
|
||||
venv.ls () {
|
||||
ll $SRC_DIRECTORY
|
||||
}
|
||||
|
||||
# django
|
||||
alias djm="python ./manage.py"
|
||||
alias dja="django-admin.py"
|
||||
|
||||
|
||||
|
||||
# virtualenv
|
||||
# export WORKON_HOME=$HOME/dev/virtenvs
|
||||
# source /usr/local/bin/virtualenvwrapper.sh
|
||||
# virtualenv aliases
|
||||
# http://blog.doughellmann.com/2010/01/virtualenvwrapper-tips-and-tricks.html
|
||||
# alias v='workon'
|
||||
# alias v.de='deactivate'
|
||||
# alias v.mk='mkvirtualenv --no-site-packages'
|
||||
# alias v.mkpkg='mkvirtualenv'
|
||||
# alias v.rm='rmvirtualenv'
|
||||
# alias v.add='add2virtualenv'
|
||||
# alias v.cd='cdvirtualenv'
|
||||
# alias v.cdpkg='cdsitepackages'
|
||||
# alias v.ls='lssitepackages'
|
Loading…
Reference in New Issue