# HG changeset patch # User Shohei KOKUBO # Date 1398022388 -32400 # Node ID d3ed59c420412e614d202dc7e353eb63c7b1e69c # Parent 2764b4f45f9f510dd48edc6148f857d9ff04f55f add zshrc diff -r 2764b4f45f9f -r d3ed59c42041 .zshrc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.zshrc Mon Apr 21 04:33:08 2014 +0900 @@ -0,0 +1,67 @@ +export PATH=/usr/local/bin:/opt/local/bin:/opt/local/sbin:/Applications/Vagrant/bin:/usr/local/cuda/bin:/Developer/NVIDIA/CUDA-5.5/bin:/usr/local/cuda/libnsight/nsight:$PATH +export MANPATH=/opt/local/man:$MANPATH +export DYLD_LIBRARY_PATH=/Developer/NVIDIA/CUDA-5.5/lib:$DYLD_LIBRARY_PATH +#export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/JDK\ 1.7.0\ Developer\ Preview.jdk/Contents/Home +#export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home +export JPF_HOME=/Users/e105744/Desktop/jpf/jpf-core +export PATH=$HOME/.rbenv/bin:$PATH +eval "$(rbenv init - zsh)" + +autoload -U compinit +compinit + +bindkey -e + +export LSCOLORS=gxfxcxdxbxegedabagacad +export LS_COLORS='di=36:ln=35:so=32: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=36' 'ln=35' 'so=32' 'ex=31' 'bd=46;34' 'cd=43;34' + +local GREEN=$'%{\e[1;32m%}' +local PINK=$'%{\e[1;35m%}' +local DEFAULT=$'%{\e[1;m%}' + +PROMPT="$GREEN%n @ %m$DEFAULT %% " +RPROMPT="[$PINK%~$DEFAULT]" +setopt PROMPT_SUBST + +HISTFILE=~/.zsh_history +HISTSIZE=2000000 +SAVEHIST=2000000 +setopt hist_ignore_all_dups +setopt share_history + +autoload history-search-end +zle -N history-beginning-search-backward-end history-search-end +zle -N history-beginning-search-forward-end history-search-end +bindkey "^P" history-beginning-search-backward-end +bindkey "^N" history-beginning-search-forward-end +setopt auto_cd +setopt auto_pushd +setopt pushd_ignore_dups + +export LISTMAX=100000 +setopt list_packed + +setopt nolistbeep +setopt no_beep + +zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' + +alias vi="vim" +alias jc="javac -J-Dfile.encoding=UTF8" +alias ja="java -Dfile.encoding=UTF8" +alias mypc="ssh e105744@126.125.160.74" +alias emacs22="/usr/bin/emacs" +case "${OSTYPE}" in +freebsd*|darwin*) + alias ls="ls -G -w" + ;; +linux*) + alias ls="ls --color" + ;; +esac + +PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting +if [[ -s "$HOME/.rvm/scripts/rvm" ]]; then + source "$HOME/.rvm/scripts/rvm"; +fi