-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc.bk
127 lines (101 loc) · 3.38 KB
/
.zshrc.bk
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
autoload -U compinit
compinit
# antigen start
source ~/src/dotfiles/antigen/antigen.zsh
antigen use oh-my-zsh
# Terminalでの入力に色がつく http://blog.glidenote.com/blog/2012/12/15/zsh-syntax-highlighting/
antigen bundle zsh-users/zsh-syntax-highlighting
# mvnで入力補完が効くようになる https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins#mvn
antigen bundle mvn
antigen theme gnzh
antigen apply
# antigen end
export LANG=ja_JP.UTF-8
export HOMEBREW_CASK_OPTS="--appdir=/Applications"
if [ -d ~/android-sdk ]; then
export ANDROID_SDK_ROOT=~/android-sdk
elif [ -d ~/android-sdks ]; then
export ANDROID_SDK_ROOT=~/android-sdks
elif [ -d ~/work/android-sdk-mac_x86 ]; then
export ANDROID_SDK_ROOT=~/work/android-sdk-mac_x86
fi
if [ -f "$(which dvm)" ]; then
eval "$(dvm env)"
fi
export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)
export JAVA8_HOME=$(/usr/libexec/java_home -v 1.8)
export ANDROID_SDK_HOME=$ANDROID_SDK_ROOT
export ANDROID_HOME=$ANDROID_SDK_HOME
export ANDROID_NDK_ROOT=~/android-ndk-r9b
export ANDROID_AVD_HOME=$ANDROID_SDK_HOME/.android/avd
export SCALA_HOME=/opt/local/share/scala
export PLAY_HOME=~/work/play-2.0.4
export DART_SDK=/Applications/dart/dart-sdk
# https://bitbucket.org/ymotongpoo/goenv
export GOPATH=~/Dropbox/work/go-work
export GOROOT=$(brew --prefix go)/libexec
export PATH=$PATH:$GOPATH/bin
export APPENGINE_DEV_APPSERVER=~/go_appengine/dev_appserver.py
export PATH=$PATH:~/go_appengine
export NACL_SDK_ROOT=~/nacl_sdk/pepper_31
if [ -s /opt/local/bin/phantomjs ]; then
export PHANTOMJS_BIN=/opt/local/bin/phantomjs
elif [ -s /usr/local/bin/phantomjs ]; then
export PHANTOMJS_BIN=/usr/local/bin/phantomjs
fi
# boot2docker up するたびに変わるのでこの対応はあまりよくないかも
# $(boot2docker shellinit)
# setup gvm (Groovy)
if [ -s ~/.gvm/bin/gvm-init.sh ]; then
source ~/.gvm/bin/gvm-init.sh
fi
export GRADLE_OPTS="-Dorg.gradle.daemon=true"
if [ -s ~/google-cloud-sdk/completion.zsh.inc ]; then
source ~/google-cloud-sdk/completion.zsh.inc
fi
## Path settings
export PATH=/opt/local/bin:/opt/local/sbin:/usr/local/bin:$PATH
# nvm より優先する
export PATH=~/.nodebrew/current/bin:$PATH
export PATH=$PATH:$JAVA_HOME/bin
# android
export PATH=$PATH:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$ANDROID_NDK_ROOT
# google
export PATH=$PATH:~/google-cloud-sdk/bin
# misc
export PATH=~/.cabal/bin:$PATH
export PATH=$PATH:$(brew --prefix git)/share/git-core/contrib/diff-highlight
eval "$(rbenv init - zsh)"
export PATH=$PATH:~/bin
export PATH=$PATH:~/work/bin
export PATH=$PATH:/usr/texbin
export MANPATH=/opt/local/man:$MANPATH
if [[ -x `which colordiff` ]]; then
alias diff='colordiff -u'
else
alias diff='diff -u'
fi
export LESS='-R'
export _JAVA_OPTIONS="-Dfile.encoding=UTF-8"
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt hist_ignore_all_dups
setopt hist_ignore_dups # ignore duplication command history list
setopt hist_save_nodups
setopt share_history # share command history data
# setopt correct
setopt append_history
setopt inc_append_history
setopt hist_no_store
setopt hist_reduce_blanks
setopt no_beep
setopt hist_ignore_space
autoload colors
colors
# alias emacs="/Applications/Emacs.app/Contents/MacOS/Emacs"
alias ls="ls -G"
alias la="ls -laGF"
alias emacs="open -a Emacs"
alias pwdweb="python -m SimpleHTTPServer 8989"
alias java7="export JAVA_HOME=`/usr/libexec/java_home -v 1.7`"