Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (33 sloc) 1.22 KB
fpath=(/usr/local/share/zsh-completions $fpath)
export CLICOLOR=true
export PROMPT='%F{green}$(sed "s:^$HOME:~:; s:\([^/]\)[^/]*/:\1/:g" <<< $PWD)%f '
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt APPEND_HISTORY # append rather than replace
setopt HIST_IGNORE_ALL_DUPS # remove previous dupes
setopt HIST_REDUCE_BLANKS # remove superfluous blanks from commands
setopt PROMPT_SUBST
setopt NO_LIST_BEEP # turn off beeping for ambiguous completions
setopt COMPLETE_IN_WORD # tab complete at the cursor position
# # Functions
# setopt LOCAL_OPTIONS
# setopt LOCAL_TRAPS
precmd () {print -Pn "\e]2; %~/ \a"}
preexec () {print -Pn "\e]2; %~/ \a"}
# Directory Shortcuts
alias prj='cd "$HOME/Dropbox/Projects"'
# Command Aliases
alias cp='cp -i'
alias fldns='sudo killall -HUP mDNSResponder'
alias json='pbpaste | python -mjson.tool'
alias ll='ls -Alp'
alias ln='ln -i'
alias mv='mv -i'
alias pgs='postgres -D /usr/local/var/postgres'
alias rmdss='find . -name .DS_Store -type f -delete'
alias shttp='ruby -run -ehttpd . -p8000'
alias sim='open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app'
autoload -Uz compinit
compinit
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' # case insensitive