.zshrc
changeset 0 5771d060b6cb
child 2 56b84756a819
equal deleted inserted replaced
-1:000000000000 0:fef04a300e15
       
     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 	;;
       
    48 esac
       
    49 
       
    50 PROMPT=$'%{\e[35m%}%m%#%{\e[m%} '
       
    51 precmd() { RPROMPT="[$PWD]" }
       
    52 
       
    53 dirbase() { basename `pwd` }
       
    54 chpwd() { [ "x$TERM" = "xscreen" ] && echo -n "\ek`hostname | cut -b 1-3`:`dirbase`\e\\" }
       
    55 
       
    56 chpwd
       
    57 
       
    58 if [ -e ${HOME}/.zshrc.local ]; then
       
    59     source ${HOME}/.zshrc.local
       
    60 fi
       
    61