Paul McLanahan  committed a80ea89

Various zsh improvements and aliases. Add ack options. Fix vim for git editor on OSX.

  • Participants
  • Parent commits ea3b5ec

Comments (0)

Files changed (4)

File dotfiles/.bash_aliases

 #alias djsetuptest=' -cm && testsyncdb && testmigrate'
 alias djtest='python test --settings=settings_local_test'
 alias djrunserver='python runserver'
-alias pysearch='find . -name "*.py" -o -name "*.html" -o -name "*.js" -o -name "*.css" | xargs grep -in'
-alias svnupup='pushd .. && rmpyc && svn up && popd'
+alias djcoverage='python test --with-coverage && coverage html'
+alias startredis='redis-server /usr/local/etc/redis.conf'
     cd $1 && ll
+alias gsu='git su'
+alias gci='git ci'

File dotfiles/.hgrc

 #inotify =
+bookmarks =
 fetch =
 color =
 purge =

File dotfiles/.vimrc

 set visualbell t_vb=    " turn off error beep/flash
 set novisualbell    " turn off visual bell
 set nobackup        " do not keep a backup file
+set nowritebackup
 set number          " show line numbers
 set numberwidth=4   " line numbering takes up 5 spaces
 set ignorecase      " ignore case when searching

File dotfiles/.zshrc

 # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
 # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
 # Example format: plugins=(rails git textmate ruby lighthouse)
-plugins=(git osx brew django pip vagrabt)
+plugins=(git osx brew django vagrant npm node)
 source $ZSH/
 # Customize to your needs...
 export PATH=~/.local/bin:/usr/local/share/python:/usr/local/bin:/Users/pmclanahan/.virtualenvs/betafarm/bin:/usr/local/share/python:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
+export NODE_PATH="/usr/local/lib/node_modules:${NODE_PATH}"
 # virtualenvwrapper and pip
 export PIP_USE_MIRRORS=true
 export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python
+export LESS="-FSRXi"
+export GRIN_ARGS="-C 2"
+export ACK_OPTIONS="--pager=less -C 2 --smart-case --ignore-dir=vendor --ignore-dir=vendor-local --type-set rst=.rst"
 if [ -f /usr/local/bin/ ]; then
     source /usr/local/bin/
 elif [ -f /usr/local/share/python/ ]; then
 #alias git=hub
-export EDITOR=/usr/bin/vim
+export EDITOR=vim
+source ~/.bash_aliases
+if [ -f ~/.zsh_local ]; then
+    source ~/.zsh_local
+# pip completion
+eval $(pip completion --zsh)
+eval $(hub alias -s zsh)