#
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
case "${OSTYPE}" in
darwin*)
export PATH=$PATH:/usr/local/bin:/usr/bin:/usr/local/share/npm/bin:$HOME/.cabal/bin:$HOME/perl5/bin;;
linux*)
;;
esac
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
# vimぽく
#bindkey -v
# Customize to your needs...
#Java設定
# export JAVA_HOME="/Library/Java/Home"
# export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home"
export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home"
export ANDROID_HOME="/Applications/Android Studio-0.8.app/sdk"
alias sed='gsed'
#Posgre設定
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.3/bin
alias psql=/usr/local/opt/postgresql/bin/psql
#Go設定
export GOPATH=$HOME/go1.6
export GOROOT=/usr/local/opt/go/libexec
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
#gtk2設定
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/opt/X11/lib/pkgconfig
#Perl設定
export PERL5LIB=$HOME/perl5/lib/perl5
#Node.js設定
export PATH=$HOME/.nodebrew/current/bin:$PATH
#エディタ設定
export EDITOR=vim
# カラー設定
export GREP_COLOR='01;33'
export LSCOLORS=exfxcxdxbxegedabagacad
export LS_COLORS='di=34:ln=35:so=32:pi=33:ex=31:bd=46;34:cd=43;34:su=41;30:sg=46;30:tw=42;30:ow=43;30'
zstyle ':completion:*' list-colors 'di=34' 'ln=35' 'so=32' 'ex=31' 'bd=46;34' 'cd=43;34'
# alias設定
setopt complete_aliases
alias ls="ls -FGh"
alias la='ls -a'
alias grep='grep --color=auto'
alias less='less -M'
alias where="command -v"
alias du="du -h"
alias df="df -h"
alias su="su -l"
alias c="clear"
alias sudo='sudo -E '
alias ssh-aizuX='ssh -X d8161105@sshgate.u-aizu.ac.jp'
alias javac='javac -J-Dfile.encoding=UTF-8'
alias java='java -Dfile.encoding=UTF-8'
alias coffee-compile='coffee -w -b -o . -c .'
alias new-window='tmux new-window -c "$PWD"'
# tmux
if [ $SHLVL = 1 ]; then
alias tmux="tmux attach || mux start default"
fi
# rbenv ruby設定
eval "$(rbenv init -)"
[[ -s /Users/watanabemirai/.tmuxinator/scripts/tmuxinator ]] && source /Users/watanabemirai/.tmuxinator/scripts/tmuxinator
# Docker設定
source ~/.dockerrc
# Open Street Map関連
export PATH=$PATH:/usr/local/osmosis/bin
PERL_MB_OPT="--install_base \"/Users/watanabemirai/perl5\""; export PERL_MB_OPT;
PERL_MM_OPT="INSTALL_BASE=/Users/watanabemirai/perl5"; export PERL_MM_OPT;
EV3_HOME="/Users/watanabemirai/leJOS_EV3_0.9.0-beta"
export PATH=$PATH:/Users/watanabemirai/leJOS_EV3_0.9.0-beta/bin
# export BYOBU_PREFIX=$(brew --prefix)
# Visual studio code 設定
code () {
if [[ $# = 0 ]]
then
open -a "Visual Studio Code"
else
[[ $1 = /* ]] && F="$1" || F="$PWD/${1#./}"
open -a "Visual Studio Code" --args "$F"
fi
}