-
Notifications
You must be signed in to change notification settings - Fork 2
/
.zshrc
95 lines (73 loc) · 2.35 KB
/
.zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Install Oh-My-Zsh if it doesn't exist
if [[ ! -d ~/.oh-my-zsh ]]; then
echo "Installing oh-my-zsh"
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
fi
export ZSH=$HOME/.oh-my-zsh
export ZSH_THEME='arrow'
export DISABLE_AUTO_UPDATE=true
export GOPATH=~/work/jmazzi/go
# COMPLETION_WAITING_DOTS="true"
plugins=(git rails3 ssh-agent)
source $ZSH/oh-my-zsh.sh
unsetopt correct_all
source ~/.rbenv/completions/rbenv.zsh
# History settings
HISTSIZE=2000
SAVEHIST=2000
# Vim previous/next
autoload -U history-search-end
zle -N history-beginning-search-backward-end history-search-end
zle -N history-beginning-search-forward-end history-search-end
bindkey '^k' history-beginning-search-backward-end
bindkey '^j' history-beginning-search-forward-end
# Exports
export EDITOR='vim'
export PATH=/Applications/Postgres.app/Contents/MacOS/bin:~/local/bin:/usr/local/share/npm/bin:~/bin:/usr/local/bin:/usr/local/sbin:/opt/android-sdk/platform-tools:~/.rbenv/bin:$PATH:~/.cabal/bin:~/.xmonad/bin:/opt/nodejs/bin:$GOPATH/bin
export JRUBY_OPTS=--1.9
export RBXOPT="-X19"
export TERM=xterm-256color
# Modes
set -o emacs
bindkey -e
# Auto cd
setopt auto_cd
cdpath=($HOME/work/Site5 $HOME/work)
# rbenv
eval "$(rbenv init -)"
# rbenv overwrites path
export PATH=./bundle_bin:./bin:~/work/deploy_tools:$PATH
# LS sugar
# eval `dircolors ~/.dircolors 2>/dev/null`
# Complete $PWD/bin if it exists. Good for bundler with binstubs
zstyle -e ':completion:*' command-path \
'[[ -d $PWD/bin ]] && reply=($PWD/bin $path)'
# Source my localrc if it exists
[[ -f ~/.localrc ]] && source ~/.localrc
# Aliases
alias diaf='git reset --hard'
alias sg='ruby script/generate'
alias sc='ruby script/console'
alias rc='pry'
alias b='bundle'
# Wrap git in hub
# alias git='hub'
alias gc='git commit'
alias gs='git status'
alias gp='git push'
alias p='nocorrect padrino'
alias s='nocorrect s'
alias knife='nocorrect knife'
alias empty_dir_find="find . -type d -empty -not -regex '.*\.git.*'"
alias empty_dir_find_keep="find . -type d -empty -not -regex '.*\.git.*' -exec touch {}/.gitignore \; -print"
# Linux
alias pacman='sudo pacman'
alias crp='CrashPlanDesktop'
alias apt-get='sudo apt-get'
alias fork='setsid'
if ! which ack > /dev/null; then
alias ack='ack-grep'
fi
alias screenfo='/usr/bin/site_perl/screenfo'
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"