forked from lewagon/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
93 lines (76 loc) · 2.28 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
ZSH=$HOME/.oh-my-zsh
# You can change the theme with another one:
# https://github.com/robbyrussell/oh-my-zsh/wiki/themes
# ZSH_THEME="robbyrussell"
# ZSH_THEME="muse"
ZSH_THEME="agnoster"
# Load rbenv automatically by appending
# the following to ~/.zshrc:
# eval "$(rbenv init -)"
# Add ruby version on prompt (float right)
if [ -x "$(command -v rbenv)" ]; then
eval "$(rbenv init -)"
RPS1='[$(ruby_prompt_info)]$EPS1';
fi
# Useful plugins for Rails development with Sublime Text and other stuff
plugins=(
brew
cake
coffee
common-aliases
django
docker
fasd
gem
gitfast
github
history-substring-search
httpie
last-working-dir
npm
nvm
osx
pip
rails
rand-quote
rbenv
react-native
sublime
thefuck
virtualenv
web-search
yarn
yeoman
zsh-better-npm-completion
zsh-nvm
zsh-syntax-highlighting
)
# If you have installed hub using Homebrew, its completions may not be on your
# $FPATH if you are using the system zsh
if (( ! ${fpath[(I)/usr/local/share/zsh/site-functions]} )); then
FPATH=/usr/local/share/zsh/site-functions:$FPATH
fi
# Prevent Homebrew from reporting - https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Analytics.md
export HOMEBREW_NO_ANALYTICS=1
# Actually load Oh-My-Zsh
source "${ZSH}/oh-my-zsh.sh"
# Rails and Ruby uses the local `bin` folder to store binstubs.
# So instead of running `bin/rails` like the doc says, just run `rails`
export PATH="/usr/local/pgsql/bin:./bin:${PATH}:/usr/local/sbin"
# Add Sphinx brew to path if it exists
[[ -d "/usr/local/opt/sphinx-doc/bin" ]] && export PATH="/usr/local/opt/sphinx-doc/bin:$PATH"
# Store your own aliases in the ~/.aliases file and load the here.
[[ -f "$HOME/.aliases" ]] && source "$HOME/.aliases"
# Encoding stuff for the terminal
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
# tmuxinator configs
export EDITOR='subl -w'
# source /usr/local/lib/ruby/gems/2.3.0/gems/tmuxinator-0.9.0/completion/tmuxinator.zsh
# [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
# Installed PostGreSQL from source
export LD_LIBRARY_PATH=/usr/local/pgsql/lib
export PATH=/usr/local/pgsql/bin:$PATH
export MANPATH=/usr/local/pgsql/share/man:$MANPATH
export BUNDLER_EDITOR="subl $@ >/dev/null 2>&1"