Created
November 24, 2014 21:15
-
-
Save gleitz/7b500e997b5659ce58f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH=/usr/local/bin:$PATH:/opt/local/bin:/usr/local/sbin:/Users/bgleitzman/android-sdk/tools:/Users/bgleitzman/android-sdk/platform-tools:/usr/local/share/npm/bin | |
export MANPATH=$MANPATH:/opt/local/share/man | |
export INFOPATH=$INFOPATH:/opt/local/share/info | |
export JAVA_OPTS="-Xmx1024m -XX:MaxPermSize=512m" | |
export MAVEN_OPTS="-Xmx3072m -XX:MaxPermSize=256m" | |
export NODE_PATH="/usr/local/lib/node_modules" | |
export WORKON_HOME="~/.virtualenvs" | |
export EDITOR="/usr/local/bin/edit" | |
export GIT_EDITOR="emacsclient -t" | |
#export MACOSX_DEPLOYMENT_TARGET=10.8 | |
export PIP_DOWNLOAD_CACHE=$HOME/.pip | |
export PS1="\h:\W \u\$ " | |
#export EDITOR='emacs' | |
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:"/Users/bgleitzman/projects/dip/Darwin/lib/" | |
# needed for sed | |
# http://stackoverflow.com/questions/19242275/sed-re-error-illegal-byte-sequence-on-mac-os-x | |
export LC_CTYPE=C | |
export LANG=C | |
export HISTSIZE=1000000 | |
export HISTFILESIZE=1000000 | |
export HISTCONTROL=ignoredups:erasedups | |
# shopt -s histappend | |
# export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND" | |
source "/usr/local/bin/virtualenvwrapper.sh" | |
function pgrep { ps waux | grep $1; } | |
function fgrep { git grep $1 $(git rev-list --all); } | |
function fsize { du -d=1 $1 | sort -nk1; } | |
function checkport { sudo lsof -i :$1; } # checks for activity on given port | |
alias h='howdoi' | |
alias scprsync='rsync -avzP' | |
alias regenerate='mvn clean install -U -DskipTests' | |
alias regen='mvn clean package -U -DskipTests=true && cp ${PWD##*/}/target/ROOT.war /Applications/ride-5.0.0/apache-tomcat-7.0.47/webapps/' | |
alias tomclean='trash /Applications/ride-5.0.0/apache-tomcat-7.0.47/webapps/* && trash /Applications/ride-5.0.0/apache-tomcat-7.0.47/wtpwebapps/*' | |
alias sshwin6='ssh -o ControlMaster=no d-sjc-00539449' | |
alias ll='ls -l' | |
alias sll='svn ls --verbose' | |
alias isvn='egrep -v "(^Binary file ./|^[^:]*(\.svn|\.pyc|-min\.)[^:]*:)"' | |
alias imedia='egrep -v "^\?[ ]+media"' | |
alias noci='egrep "(REM|BOO|FOO|TODO|raise Exception|console|System\.out|debugger)"' | |
alias rmpyc='find . -name "*.pyc" -exec trash {} \;' | |
alias rmelc='find . -name "*.elc" -exec trash {} \;' | |
alias eamcs='emacs' | |
alias emcas='emacs' | |
alias emac='emacs' | |
alias emacs='emacsclient' | |
alias add80='sudo ipfw add 100 fwd 127.0.0.1,8080 tcp from any to any 80 in' | |
alias remove80='sudo ipfw flush' | |
alias rvnc='ssh -L 5900:127.0.0.1:5900 -N -f -l gleitz gleitz.brb.dj' | |
alias mvno='mvn -s ~/.m2/scala-settings.xml' | |
alias mvnv='mvn -s ~/.m2/settings-default.xml' | |
alias adddns='sudo networksetup -setdnsservers Wi-Fi 10.241.16.127' | |
alias deldns='sudo networksetup -setdnsservers Wi-Fi 8.8.8.8' | |
alias npmv='npm --registry http://registry.npmjs.org/' | |
alias taile='tail -f /Users/bgleitzman/projects/ebay/workspaces/TeamFeed/geronimo.log' | |
alias release='echo "add State:/Network/Interface/en0/RefreshConfiguration temporary" | sudo scutil' | |
alias macmini='open vnc://10.224.80.205' | |
alias tabtospace="find . -type f -name '*.js' -exec sed -i '' 's/ / /g' {} \;" | |
alias pgstart="pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start" | |
alias pgstop="pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log stop" | |
alias fixaudio="sudo killall coreaudiod" | |
alias pipupgrade="pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs pip install -U" | |
alias cssh="csshX --config ~/.csshrc" | |
alias matlab="open /Applications/MATLAB.app/" | |
alias smash="~/bin/smash" | |
if [ -f $(brew --prefix)/etc/bash_completion ]; then | |
. $(brew --prefix)/etc/bash_completion | |
fi | |
menuvirtualenv() { | |
select env in `lsvirtualenv -b`; do | |
if [ -n "$env" ]; then | |
workon "$env" | |
fi; | |
break; | |
done; | |
} | |
alias v.menu='menuvirtualenv' | |
alias v='workon' | |
alias v.deactivate='deactivate' | |
alias v.mk='mkvirtualenv' | |
alias v.rm='rmvirtualenv' | |
alias v.switch='workon' | |
alias v.add2virtualenv='add2virtualenv' | |
alias v.cdsitepackages='cdsitepackages' | |
alias v.cd='cdvirtualenv' | |
alias v.lssitepackages='lssitepackages' | |
source /Users/bgleitzman/.rvm/scripts/rvm | |
. ~/projects/z/z.sh | |
source /usr/local/bin/setup_completeme_key_binding.sh | |
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting | |
[ -s $HOME/.nvm/nvm.sh ] && . $HOME/.nvm/nvm.sh # This loads NVM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment