Commits

Anonymous committed 2114ef6

Various zshrc customization

Comments (0)

Files changed (1)

 promptinit
 prompt grb
 
+autoload -U compinit
+compinit
+
 # Add paths that should have been there by default
 export PATH=${PATH}:/usr/local/bin
-export PATH="~/bin:$PATH"
+export PATH="/Users/grb/bin:$PATH"
 export PATH="$PATH:~/.gem/ruby/1.8/bin"
 
 # Add postgres to the path
 export HISTFILE="$HOME/.history"
 export SAVEHIST=$HISTSIZE
 
+# Unbreak Python's error-prone .pyc file generation
+export PYTHONDONTWRITEBYTECODE=1
+
+export WORDCHARS='*?[]~&;!$%^<>'
 
 # ACTUAL CUSTOMIZATION OH NOES!
 gd() { git diff $* | view -; }
 gdc() { gd --cached $*; }
 alias pygrep="grep --include='*.py' $*"
 alias rbgrep="grep --include='*.rb' $*"
+alias r=rails
 
 activate_virtualenv() {
     if [ -f env/bin/activate ]; then . env/bin/activate;
         )"
 }
 
+# Originally from Jonathan Penn, with modifications by Gary Bernhardt
+function whodoneit() {
+    (set -e &&
+        for x in $(git grep -I --name-only $1); do
+            git blame -f -- $x | grep $1;
+        done
+    )
+}
+
+# Set up rvm
+[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm
+
 # MacPorts Installer addition on 2010-04-21_at_09:59:50: adding an appropriate PATH variable for use with MacPorts.
-export PATH=/opt/local/bin:/opt/local/sbin:/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin:$PATH
+export PATH=/opt/local/bin:/opt/local/sbin:/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin:/opt/local/lib/mysql5/bin:$PATH
 # Finished adapting your PATH environment variable for use with MacPorts.
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.