Permalink
Browse files

Port over the .bashrc stuff to .zshrc

  • Loading branch information...
1 parent 0219888 commit 55880d081e0a350b7b6123337571e51f8961c2ab @sjl committed Jan 9, 2010
Showing with 41 additions and 9 deletions.
  1. +1 −1 .bashrc
  2. +40 −8 .zshrc
View
@@ -31,7 +31,7 @@ export PYTHONSTARTUP="$HOME/.pythonrc.py"
export COMMAND_MODE=unix2003
export R_LIBS="$HOME/lib/r"
-# Extra shell extensions like j and tab completion for Mercurial -------------
+# Extra shell extensions like z and tab completion for Mercurial -------------
source ~/lib/z/z.sh
source ~/lib/hg/bash_completion
source ~/lib/python/virtualenvwrapper/virtualenvwrapper_bashrc
View
@@ -1,14 +1,46 @@
-# Path to your oh-my-zsh configuration.
export ZSH=$HOME/lib/oh-my-zsh
-
-# Set to the name theme to load.
-# Look in ~/.oh-my-zsh/themes/
export ZSH_THEME="prose"
-
-# Comment this out to disable weekly auto-update checks
export DISABLE_AUTO_UPDATE="true"
-
source $ZSH/oh-my-zsh.sh
-# Customize to your needs...
+# Useful aliases -------------------------------------------------------------
+alias ls='ls -Goh'
+alias less='less -R'
+alias hl='less -R'
+alias pm='python manage.py'
+alias oo='open .'
+alias j='z'
+alias flakes="find . -name '*.py' -print0 | xargs -0 pyflakes"
+alias fab='fab -i ~/.ssh/stevelosh'
+alias tweets-stevelosh='~/src/grabtweets/grabtweets.py -p ~/Documents/tweets/stevelosh'
+alias meme="curl -q --silent meme.boxofjunk.ws/moar.txt?lines=1"
+alias deact='deactivate'
+alias serve_this='python -m SimpleHTTPServer'
+
+# Environment variables ------------------------------------------------------
+export EDITOR='vim'
export PATH="/usr/local/bin:~/lib/fmscripts:~/bin:${PATH}"
+export WORKON_HOME="${HOME}/lib/virtualenvs"
+export GREP_OPTIONS='--color=auto'
+export HISTSIZE=1000
+export HISTFILESIZE=1000
+export HISTCONTROL=erasedups
+export JPY="${HOME}/lib/j2/j.py"
+export PYTHONSTARTUP="$HOME/.pythonrc.py"
+export COMMAND_MODE=unix2003
+export R_LIBS="$HOME/lib/r"
+
+# Extra shell extensions like z and tab completion for Mercurial -------------
+source ~/lib/z/z.sh
+source ~/lib/python/virtualenvwrapper/virtualenvwrapper_bashrc
+
+# Useful functions -----------------------------------------------------------
+
+function wo() {
+ [ -f './.venv' ] && workon `cat ./.venv`
+}
+
+# Gorilla --------------------------------------------------------------------
+
+export PATH="/Users/sjl/src/gorilla/bin:$PATH"
+export PYTHONPATH="/Users/sjl/src/gorilla/lib:$PYTHONPATH"

0 comments on commit 55880d0

Please sign in to comment.