Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 13ecd2a35e
Fetching contributors…

Cannot retrieve contributors at this time

94 lines (73 sloc) 2.594 kB
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
ZSH_THEME="blinks"
plugins=(lol osx ruby battery github sublime)
ulimit -n 2048
source $ZSH/oh-my-zsh.sh
# Disable autocorrect for arguments, but enable it for commands.
unsetopt correct_all
setopt correct
# Change to a directory just by typing its name.
setopt autocd
# Use more powerful globbing
setopt extended_glob
# zmv is a pattern-based file renaming module.
autoload -U zmv
alias lsl="ls -lah"
alias wps="wp --path=wp/ $1"
function console () {
if [[ $# > 0 ]]; then
query=$(echo "$*"|tr -s ' ' '|')
tail -f /var/log/system.log|grep -i --color=auto -E "$query"
else
tail -f /var/log/system.log
fi
}
function kill_port() {
if [[ $# > 0 ]]; then
lsof -P | grep ':'$1 | awk '{print $2}' | xargs kill -9
fi
}
function scratch() {
if [ -f ~/Dropbox/Elements/Scratchpad.txt ]; then
vim ~/Dropbox/Elements/Scratchpad.txt
fi
}
function spaces_to_tabs() {
sed -i '' -E "s/ / /g" **/*(.)
}
function strip_trailing_whitespace() {
sed -i '' -E "s/[[:space:]]*$//" **/*(.)
}
# Count the significant lines of code in the current directory.
function sloc() {
grep -v '^$' **.(js|php) | grep -v '//' | wc -l
}
# Compile Compass, making a guess about what directory to compile in.
function compile_compass() {
ls -d1 **/.sass-cache/../ | xargs -L1 compass compile --force -s compressed
}
# make sure ctrl-s saves stuff in vim
alias vim="stty stop '' -ixoff; vim"
ttyctl -f
fancy-ctrl-z () {
if [[ $#BUFFER -eq 0 ]]; then
bg
zle redisplay
else
zle push-input
fi
}
zle -N fancy-ctrl-z
bindkey '^Z' fancy-ctrl-z
bindkey -v
bindkey '\e[3~' delete-char
bindkey '^R' history-incremental-search-backward
bindkey -M viins 'jj' vi-cmd-mode
export LESSOPEN="| /usr/local/Cellar/source-highlight/3.1.7/bin/src-hilite-lesspipe.sh %s"
export LESS=' -RFX '
[[ -s "$HOME/.z.sh" ]] && source "$HOME/.z.sh"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
export PATH=/Developer/usr/bin:~/.pythonbrew/bin:/opt/local/bin:/opt/local/sbin:/Users/jghazally/bin:/Users/jghazally/dotfiles/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Developer/usr/bin:/Users/jghazally/pear/bin:/usr/local/sbin:$HOME/.rvm.bin
PATH="/Applications/MAMP/bin/php/php5.3.6/bin/share/pear:/Applications/MAMP/Library/bin:/Applications/MAMP/bin/php/php5.3.6/bin:/Users/jghazally/.rvm/gems/ruby-1.9.3-p194/bin:$PATH"
PATH="/Applications/MAMP/bin/php/php5.3.6/bin/share/pear:/Applications/MAMP/Library/bin:/Applications/MAMP/bin/php/php5.3.6/bin:/Users/SCM/.rvm/gems/ruby-1.9.3-p194/bin:$PATH"
Jump to Line
Something went wrong with that request. Please try again.