diff --git a/.bash_crypto b/.bash_crypto index 68502d3..a9fe4be 100644 --- a/.bash_crypto +++ b/.bash_crypto @@ -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" diff --git a/.bash_dev b/.bash_dev index 9067441..b43ad37 100644 --- a/.bash_dev +++ b/.bash_dev @@ -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 diff --git a/.bash_mac b/.bash_mac index 9a01fa9..43f2748 100644 --- a/.bash_mac +++ b/.bash_mac @@ -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' diff --git a/.bash_profile b/.bash_profile index 31916ed..b204afb 100644 --- a/.bash_profile +++ b/.bash_profile @@ -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" diff --git a/.bash_python b/.bash_python new file mode 100644 index 0000000..509e306 --- /dev/null +++ b/.bash_python @@ -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'