-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
54 lines (39 loc) · 1.54 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
. ~/.zsh/config
. ~/.zsh/aliases
. ~/.zsh/completion
# use .localrc for settings specific to one system
[[ -f ~/.localrc ]] && . ~/.localrc
# Path to oh-my-zsh configuration
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
ZSH_THEME="bolt"
DISABLE_AUTO_UPDATE="true"
# Set to this to use case-sensitive completion
# CASE_SENSITIVE="true"
# Uncomment following line if you want to disable autosetting terminal title.
# DISABLE_AUTO_TITLE="true"
# 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/
plugins=(git osx brew ruby rvm node npm)
source $ZSH/oh-my-zsh.sh
export PATH=/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/bin:/usr/X11/bin:/usr/games:$HOME/.bin:/bin:/sbin:/usr/texbin:$HOME/.rvm/bin:/usr/local/rvm/bin:/usr/local/share/python:node_modules/.bin:/usr/local/share/npm/bin
platform=`uname`
# load RVM into a shell session
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
# tell grep to highlight matches
export GREP_OPTIONS='--color=auto'
if [[ "$platform" == "Darwin" ]]; then
# OS X specific stuff
CC=/usr/bin/gcc-4.2
export NODE_PATH=$NODE_PATH:/usr/local/lib/node_modules:/usr/local/share/npm/bin:/usr/local/share/npm/lib/node_modules
# load grc for pretty colors
source "`brew --prefix grc`/etc/grc.bashrc"
else
# zsh autocorrect fix
unsetopt correct_all
fi
hitch() {
command hitch "$@"
if [[ -s "$HOME/.hitch_export_authors" ]] ; then source "$HOME/.hitch_export_authors" ; fi
}
alias unhitch='hitch -u'