-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzshrc
73 lines (54 loc) · 2.01 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
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
PROMPT_SUBST=0
PROMPT_PERCENT=0
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
# Set to this to use case-sensitive completion
# CASE_SENSITIVE="true"
# Comment this out to disable weekly auto-update checks
# DISABLE_AUTO_UPDATE="true"
# Uncomment following line if you want red dots to be displayed while waiting for completion
# COMPLETION_WAITING_DOTS="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/
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(aws git python vagrant virtualenvwrapper zsh-nvm)
# VIM-style shell
export EDITOR="vim"
bindkey -v
bindkey '^R' history-incremental-search-backward
bindkey '^S' history-incremental-search-forward
bindkey '^P' history-search-backward
bindkey '^N' history-search-forward
# `cd` by just typing dir name
setopt AUTO_CD
export PATH=/usr/local/opt/postgresql@10/bin:/usr/local/bin:/usr/local/opt/coreutils/libexec/gnubin:/usr/local/opt/python/libexec/bin:$PATH
source $ZSH/oh-my-zsh.sh
# Customize to your needs...
unsetopt correct_all
alias rake='noglob rake'
alias lock="/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend"
# Emacs
alias emacs="/usr/local/Cellar/emacs/24.5/bin/emacs"
# Ruby
# eval "$(rbenv init -)"
# Go
if [ -d /usr/local/go ]; then
export PATH=/usr/local/go/bin:$PATH
source /usr/local/go/misc/zsh/go
fi
export GOPATH=/Users/mclarke/Code/go
export PATH=$GOPATH/bin:$PATH
# Python
export PYTHONDONTWRITEBYTECODE=1
# Lein
alias lein="LEIN_JVM_OPTS='-Dlog4j.configuration=file:$(echo $HOME)/.log4j.lein.properties' lein"
# Postgres.app
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.4/bin
# Volta
export PATH=$PATH:~/.volta/bin
# [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh