diff -r 000000000000 -r 5771d060b6cb .zshrc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.zshrc Thu Dec 31 21:39:18 2009 +0900 @@ -0,0 +1,61 @@ +# Lines configured by zsh-newuser-install + +HISTFILE=~/.histfile +HISTSIZE=1000000 +SAVEHIST=1000000 +setopt appendhistory +setopt share_history +setopt hist_ignore_dups +setopt auto_pushd +setopt magic_equal_subst +bindkey -e +# End of lines configured by zsh-newuser-install +# The following lines were added by compinstall +# zstyle :compinstall filename '/home/swk/.zshrc' + +fpath=($fpath /usr/share/zsh/functions/Zle) +autoload -U compinit +compinit -u +# End of lines added by compinstall + +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 + +export CVS_RSH=ssh +export RSYNC_RSH=ssh +export EDITOR=vi +export PAGER=less +export JLESSCHARSET=ja +export LS_COLORS="di=31:ex=34:ln=46:pi=0:so=0:cd=0:bd=0" + +alias ls="ls --color=tty" +alias l="ls -l" +alias lynx="lynx -nopause" + +case "$OSTYPE" in + freebsd*) + alias ls="gnuls --color=tty" + alias emacs=emcws + alias less=jless + ;; + cygwin) + alias start=cygstart + alias ls="ls --color=tty --show-control-chars" + ;; +esac + +PROMPT=$'%{\e[35m%}%m%#%{\e[m%} ' +precmd() { RPROMPT="[$PWD]" } + +dirbase() { basename `pwd` } +chpwd() { [ "x$TERM" = "xscreen" ] && echo -n "\ek`hostname | cut -b 1-3`:`dirbase`\e\\" } + +chpwd + +if [ -e ${HOME}/.zshrc.local ]; then + source ${HOME}/.zshrc.local +fi +