-
Notifications
You must be signed in to change notification settings - Fork 1
/
zshrc
58 lines (45 loc) · 1.86 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
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# 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=( bundler capistrano colorize git git-completion git-extras git-hubflow macports osx powder rails rake-fast rvm sublime zsh_reload)
plugins=(aws git gitfast git-prompt rvm sublime)
# Load autojump with tab completions
export FPATH="$FPATH:/opt/local/share/zsh/site-functions/"
if [ -f /opt/local/etc/profile.d/autojump.sh ]; then
. /opt/local/etc/profile.d/autojump.sh
fi
autoload -U compinit; compinit
# User configuration
PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:$PATH"
PATH=./bin:~/bin:$PATH # Personal scripts etc
PATH=/opt/local/bin:$PATH # npm
PATH=/usr/local/sbin:/opt/local/bin:/opt/local/sbin:$PATH # MacPorts
PATH=~/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='vim'
else
export EDITOR='vim'
fi
# Optimize Ruby GC for longer running processes
export RUBY_GC_HEAP_INIT_SLOTS=2000000
export RUBY_HEAP_SLOTS_INCREMENT=500000
export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
export RUBY_GC_MALLOC_LIMIT=70000000
export RUBY_GC_HEAP_FREE_SLOTS=100000
# Load RVM into a shell session *as a function*
[[ -s ~/.rvm/scripts/rvm ]] && source ~/.rvm/scripts/rvm
# Load aliases
[[ -f ~/.aliases ]] && source ~/.aliases
# Load extensions
[[ -f ~/.extensions ]] && source ~/.extensions
# Local config
[[ -f ~/.zshrc.local ]] && source ~/.zshrc.local
source $ZSH/oh-my-zsh.sh