Zshの設定ファイルのメモ
24 / Feb 2009毎回設定が分からなくなるので、メモしておく。
# The following lines were added by compinstall # Time-stamp:<2009-02-24 20:33:40> zstyle :compinstall filename '/home/toru/.zshrc' #zstyle ':completion:*' list-colors di=34 fi=0 zstyle ':completion:*' list-colors '' autoload -Uz compinit compinit # End of lines added by compinstall # Lines configured by zsh-newuser-install # History seting HISTFILE=~/.histfile HISTSIZE=10000 SAVEHIST=10000 setopt hist_ignore_dups # ignore duplication command history list setopt share_history # share command history data 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 autocd # End of lines configured by zsh-newuser-install # LANG # export LANG=ja_JP.UTF-8 # export LANG=ja_JP.eucJP ## Default shell configuration # # set prompt # case ${UID} in 0) PROMPT="%B%{e[32m%}%/#%{e[m%}%b " PROMPT2="%B%{e[32m%}%_#%{e[m%}%b " SPROMPT="%B%{e[32m%}%r is correct? [n,y,a,e]:%{e[m%}%b " [ -n "${REMOTEHOST}${SSH_CONNECTION}" ] && PROMPT="%{e[37m%}${HOST%%.*} ${PROMPT}" ;; *) PROMPT="%{e[32m%}%/%%%{e[m%} " PROMPT2="%{e[32m%}%_%%%{e[m%} " SPROMPT="%{e[32m%}%r is correct? [n,y,a,e]:%{e[m%} " [ -n "${REMOTEHOST}${SSH_CONNECTION}" ] && PROMPT="%{e[37m%}${HOST%%.*} ${PROMPT}" ;; esac # set terminal title including current directory # case "${TERM}" in kterm*|xterm) precmd() { echo -ne "