-
Notifications
You must be signed in to change notification settings - Fork 5
/
.zshrc.oh-my-zsh
103 lines (74 loc) · 3.45 KB
/
.zshrc.oh-my-zsh
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
if command -v brew &>/dev/null; then
# Cache result of brew --prefix once because it is expensive.
brew_pfx=$(brew --prefix)
fi
skip_global_compinit=1
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# http://mrjoelkemp.com/2013/06/remapping-iterm2-option-keys-for-fish-terminal/
bindkey "\e\[1\;9C" forward-word
bindkey "\e\[1\;9D" backward-word
bindkey "\e\[dw" backward-kill-word
# 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="bullet-train"
BULLETTRAIN_TIME_SHOW=false
BULLETTRAIN_RUBY_SHOW=false
BULLETTRAIN_VIRTUALENV_SHOW=false
BULLETTRAIN_GIT_COLORIZE_DIRTY=true
# 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 to disable colors in ls
# DISABLE_LS_COLORS="true"
# Uncomment following line if you want to disable autosetting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment following line if you want red dots to be displayed while waiting for completion
COMPLETION_WAITING_DOTS="true"
HISTCONTROL=ignoredups:ignorespace
# 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=(ant atom bower bgnotify brew brew-cask compleat colorize dash docker encode64 fasd Forklift gem git-extras gitfast gitignore glassfish gradle grails grunt gulp httpie jsontools marked2 mercurial mvn node npm osx rake rbenv sublime spring thefuck svn vagrant xcode z)
source $ZSH/oh-my-zsh.sh
autoload -U promptinit; promptinit
prompt pure
# Customize to your needs...
export PATH=/usr/local/bin:/opt/local/bin:/opt/local/sbin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin:/usr/local/sbin:/usr/bin:/usr/local/share/npm/bin:$JAVA_HOME/bin
export PATH="$HOME/.rbenv/bin:$PATH"
# Hazelcast Simulator
export SIMULATOR_HOME=~/hazelcast-simulator
PATH=$SIMULATOR_HOME/bin:$PATH
PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"
test -e ~/.dircolors && eval `gdircolors -b ~/.dircolors`
# Terminal 256 colors
export TERM="xterm-256color"
export EDITOR="subl -w"
#xmlcatalog
export XML_CATALOG_FILES="$brew_pfx/etc/xml/catalog"
export HOMEBREW_CASK_OPTS="--appdir=/Applications"
export JRUBY_OPTS="-Xcompat.version=RUBY1_9 -Xcompile.mode=OFF -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-Xverify:none -Xcext.enabled=true"
fasd_cache="$HOME/.fasd-init-bash"
if [ "$(command -v fasd)" -nt "$fasd_cache" -o ! -s "$fasd_cache" ]; then
fasd --init auto >| "$fasd_cache"
fi
source "$fasd_cache"
unset fasd_cache
setjdk18
if which rbenv > /dev/null; then eval "$(rbenv init - --no-rehash)"; fi
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
export NVM_DIR=~/.nvm
alias loadnvm="source $(brew --prefix nvm)/nvm.sh"
export FZF_DEFAULT_OPTS='
--bind ctrl-f:page-down,ctrl-b:page-up
--color fg:102,bg:233,hl:65,fg+:15,bg+:234,hl+:108
--color info:108,prompt:109,spinner:108,pointer:168,marker:168
'
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
#THIS MUST BE AT THE END OF THE FILE FOR GVM TO WORK!!!
export SDKMAN_DIR="${HOME}/.sdkman" && source "${HOME}/.sdkman/bin/sdkman-init.sh"
export PATH="/usr/local/opt/[email protected]/bin:$PATH"