.zshrc
author Shingo W. Kagami
Fri, 22 Jan 2010 22:54:09 +0900
changeset 8 259bcb382069
parent 2 56b84756a819
child 9 a38aec29a244
permissions -rw-r--r--
Untabify .zshrc.
     1 # Lines configured by zsh-newuser-install
     2 
     3 HISTFILE=~/.histfile
     4 HISTSIZE=1000000
     5 SAVEHIST=1000000
     6 setopt appendhistory
     7 setopt share_history
     8 setopt hist_ignore_dups
     9 setopt auto_pushd
    10 setopt magic_equal_subst
    11 bindkey -e
    12 # End of lines configured by zsh-newuser-install
    13 # The following lines were added by compinstall
    14 # zstyle :compinstall filename '/home/swk/.zshrc'
    15 
    16 fpath=($fpath /usr/share/zsh/functions/Zle)
    17 autoload -U compinit
    18 compinit -u
    19 # End of lines added by compinstall
    20 
    21 autoload history-search-end
    22 zle -N history-beginning-search-backward-end history-search-end
    23 zle -N history-beginning-search-forward-end history-search-end
    24 bindkey '^P' history-beginning-search-backward-end
    25 bindkey '^N' history-beginning-search-forward-end
    26 
    27 export CVS_RSH=ssh
    28 export RSYNC_RSH=ssh
    29 export EDITOR=vi
    30 export PAGER=less
    31 export JLESSCHARSET=ja
    32 export LS_COLORS="di=31:ex=34:ln=46:pi=0:so=0:cd=0:bd=0"
    33 
    34 alias ls="ls --color=tty"
    35 alias l="ls -l"
    36 alias lynx="lynx -nopause"
    37 
    38 case "$OSTYPE" in
    39     freebsd*)
    40         alias ls="gnuls --color=tty"
    41         alias emacs=emcws
    42         alias less=jless
    43         ;;
    44     cygwin)
    45         alias start=cygstart
    46         alias ls="ls --color=tty --show-control-chars"
    47         if [ -e ${HOME}/.zshrc.cygwin ]; then
    48             source ${HOME}/.zshrc.cygwin
    49         fi
    50         ;;
    51 esac
    52 
    53 PROMPT=$'%{\e[35m%}%m%#%{\e[m%} '
    54 precmd() { RPROMPT="[$PWD]" }
    55 
    56 dirbase() { basename `pwd` }
    57 chpwd() { [ "x$TERM" = "xscreen" ] && echo -n "\ek`hostname | cut -b 1-3`:`dirbase`\e\\" }
    58 
    59 chpwd