自分用 .zshrc

井上です。
自分用に.zshrcのサンプルです.

#
# Japanese env. -----------------------------------------------
# ロケールに関する環境変数をすばやく切替えるためのエイリアス
#
alias utf='export LANG=ja_JP.UTF-8; export LANGUAGE=ja_JP.UTF-8; export LC_ALL=ja_JP.UTF-8'
alias en='export LANG=en; export LANGUAGE=en; export LC_ALL=en'
alias eucjp='export LANG=ja_JP.eucJP; export LANGUAGE=ja_JP.eucJP; export LC_ALL=ja_JP.eucJP'
alias sjis='export LANG=ja_JP.SJIS; export LANGUAGE=ja_JP.SJIS; export LC_ALL=ja_JP.SJIS'

#
# デフォルトのローケルはen
# 理由は、環境によっては日本語が表示できなかったりするから
#
export LANGUAGE=ja_JP.UTF-8
export LC_ALL=ja_JP.UTF-8
export LANG=ja_JP.UTF-8
#
# Using shell
#
export SHELL=/bin/zsh

#
# 補完機能
#
autoload -U compinit
compinit

## Default shell configuration
#
# set prompt
#
# please modeify to ESC sequence.. ^[ (EMCAS: C-q ESC)
case ${UID} in
0)
PROMPT="%B%{^[[31m%}%/#%{^[[m%}%b "
PROMPT2="%B%{^[[31m%}%_#%{^[[m%}%b "
SPROMPT="%B%{^[[31m%}%r is correct? [n,y,a,e]:%{e[m%}%b "
[ -n "${REMOTEHOST}${SSH_CONNECTION}" ] &&
PROMPT="%{^[[37m%}${HOST%%.*} ${PROMPT}"
;;
## Please del one'#' following
# *)
PROMPT="%{^[[36m%}%/%%%{^[[m%} "
PROMPT2="%{^[[36m%}%_%%%{^[[m%} "
SPROMPT="%{^[[36m%}%r is correct? [n,y,a,e]:%{e[m%} "
[ -n "${REMOTEHOST}${SSH_CONNECTION}" ] &&
PROMPT="%{^[[37m%}${HOST%%.*} ${PROMPT}"
;;
esac

# set terminal title including current directory
#
case "${TERM}" in
kterm*|xterm)
precmd() {
echo -ne "\033]0;${USER}@${HOST%%.*}:${PWD}\007"
}
;;
esac

## Command history configuration
#
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt hist_ignore_dups # ignore duplication command history list
setopt share_history # share command history data

## Keybind configuration
#
# emacs like keybind (e.x. Ctrl-a goes to head of a line and Ctrl-e goes
# to end of it)
#
#bindkey -e

# historical backward/forward search with linehead string binded to ^P/^N
#
#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

#########################################
### Application PATH ###
#########################################
# Sample is following..
# for SDCC
SDCC_PATH=/Developer/sdcc/bin
export SDCC_PATH
PATH=${SDCC_PATH}:$PATH

# PAGER
export PAGER=lv

# for Subversion
export SVN_EDITOR="vi"

# jman
# EUC-JP output
#export LV=-Oej

######################
###### alias ########
######################
#
# ls -------------------------------------------------------------
#
# -lは詳細な情報の表示
# -Gはグループを非表示
# -aは隠しファイルを表示
# -hは、サイズをkB, MB, GBとかで表示
#
alias la='ls -ah'
alias ll='ls -lhG'
alias lla='ls -alh'

alias ls="ls -FGw"

#Start up Carbon Emacs
alias emacs='/Applications/Emacs.app/Contents/MacOS/Emacs'

#Start up MySQL
alias MySQLCOM='/Library/StartupItems/MySQLCOM/MySQLCOM'

# japaness Man
#alias man='jman'

#
# -iは確認を行う。-vは詳細な情報の表示。
#
alias cp='cp -iv'
alias rm='rm -iv'
alias mv='mv -iv'