-
Notifications
You must be signed in to change notification settings - Fork 1
/
.zshrc
117 lines (93 loc) · 3.21 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# Path to your oh-my-zsh configuration.
export ZSH=$HOME/.oh-my-zsh
# Set to the name theme to load.
# Look in ~/.oh-my-zsh/themes/
export ZSH_THEME="sporty_sam"
# Set to this to use case-sensitive completion
# export CASE_SENSITIVE="true"
# Comment this out to disable weekly auto-update checks
export DISABLE_AUTO_UPDATE="true"
# enable speaking deploy messages
export TALKTOMEBABY=1
# report time if execution exceeds amount of seconds
export REPORTTIME=2
export EDITOR='vim'
export LC_ALL='en_US'
export DISABLE_AUTO_TITLE=true
export CC=/usr/bin/gcc
export COMPLETION_WAITING_DOTS="true"
export SPRING_ON=1
export BAT_THEME="Solarized (dark)"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(git rails ruby textmate brew osx sublime jira zsh-syntax-highlighting fasd)
source $ZSH/oh-my-zsh.sh
# Customize to your needs...
export PATH=$HOME/script:$HOME/bin:/usr/local/bin:/usr/local/sbin:/usr/local/lib:/Users/neo/script:/Users/neo/Dropbox/script:/Users/neo/script/perl:/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11/bin:/usr/local/Cellar/node/0.8.8/bin:/usr/local/share/npm/bin:$PATH
# one'zies
alias e='subl .'
alias o='open .' #open current directory in finder
alias vi=$EDITOR
# rails development aliases
alias ss='script/server'
alias rs='bundle install && rake db:migrate && rails server'
alias rc='script/rails console'
alias rg='script/rails generator'
alias sd='script/server --debugger'
alias sg='script/generate'
alias sc='script/console'
alias rr='rake routes'
alias lh3='open http://localhost:3000'
alias syck_shit='RUBYOPT="-rpsych" bundle install'
alias preflight_check='bundle install; rake db:migrate; autotest'
alias tests='npm test && parallel_rspec spec'
#git stuff
alias eat='clear; git pull ; glg --no-merges --max-count=7'
alias poop='git push'
alias cut='git branch -d'
alias branch='git co -b'
alias hard_reset='git reset --hard && git clean -d -f'
alias gti='git'
alias bashws="git ci -m 'bash trailing whitespace'"
alias gdf='git diff'
alias gst='rubocop-git ; git status'
# sound it out
alias bell='mpg123 ~/Dropbox/sounds/campfire_horn.mp3'
alias beep='bell'
alias notify='say "command completed"'
# misc
alias cal='ncal'
alias caly='ncal -y'
# 4 T3H LOLZ
alias cat='bat'
fpath=(/usr/local/share/zsh-completions $fpath)
[[ -s $HOME/.tmuxinator/scripts/tmuxinator ]] && source $HOME/.tmuxinator/scripts/tmuxinator
function _update_ruby_version()
{
typeset -g ruby_version=''
if which asdf &> /dev/null; then
ruby_version="$(asdf which ruby | grep -o -e "[0-9]\.[0-9]\.[0-9]")"
fi
}
chpwd_functions+=(_update_ruby_version)
function howoften()
{
history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
}
function showlogo() {
if [[ -n $SKIP_LOGO && $SKIP_LOGO == "true" ]]; then
return 0
fi
if [[ -d ~/.files/logos ]]; then
LOGOS=( ~/.files/logos/* )
/bin/cat $LOGOS[$RANDOM%$#LOGOS+1]
else
figlet -f larry3d `hostname -s`
fi
echo ""
}
showlogo
istats
test -e ${HOME}/.iterm2_shell_integration.zsh && source ${HOME}/.iterm2_shell_integration.zsh
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh