7 zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z} r:|[/]=* r:|=*'
8 zstyle ':completion:*' use-cache true
10 if [ -d "$HOME/.zfunc" ]; then
11 fpath=($HOME/.zfunc $fpath)
12 autoload -U ~/.zfunc/*(:t)
16 unfunction $f:t 2> /dev/null
21 if [ -f "$HOME/.ssh/known_hosts" ]; then
22 _cache_hosts=(`perl -ne 'if (/^([a-zA-Z0-9.-]+)/) { print "$1\n";}' ~/.ssh/known_hosts`)
33 setopt auto_param_keys
34 setopt auto_param_slash
35 setopt auto_remove_slash
38 setopt complete_aliases
45 setopt pushd_ignore_dups
47 setopt sh_file_expansion
48 setopt always_last_prompt
50 setopt hist_ignore_all_dups
51 setopt hist_ignore_space
52 setopt inc_append_history
55 function _we_are_in_gnu_screen () {
59 _prompt_base='%B[%n@%m] %{%(?.$fg[green].$fg[red])%}%#%{$reset_color%}%b '
60 if ( _we_are_in_gnu_screen ); then
61 # Magic escape sequence for GNU Screen to update their titles
62 # dynamically by grabbing prompt line.
63 PROMPT=$'%{\ek\e\\%}'$_prompt_base
68 RPROMPT='%U%D{%m/%d}%u %U%D{%T}%u %U%~%u'
70 HISTFILE="$HOME/.zhistory"
85 alias ed='ed -p "ed> "'
88 alias mwget="wget --user-agent='Mozilla/1.4b'"
89 alias pstow="pushd /usr/local/stow"
90 alias w3m="w3m -O UTF-8"
91 alias w3mb="w3m -O UTF-8 -B"
92 alias pkgsrc="pushd /usr/pkgsrc"
94 alias aria="ssh -X admin@aria.cielonegro.org"
95 alias nem="ssh -X pho@nem.cielonegro.org"
96 alias mikasa="ssh -X daimon@mikasa.tomilab.net"
98 alias g1="ssh pho@g1.cuenote.jp"
99 alias g2="ssh pho@g2.cuenote.jp"
101 if [ $(hostname) = "aria.cielonegro.org" ]; then
102 alias safari="open -a Safari"
103 alias unstuff='open -a StuffIt\ Expander.app'
104 alias pa='open -a NiseRingo.app'
105 alias heboris='open /Applications/HeborisUEMac/exe/Heboris\ OpenGL.app'
106 alias hengband='open ~/Applications/hengband*/Hengband*'
109 if [ $(uname) = "Darwin" ]; then
123 # The following lines were added by compinstall
125 zstyle :compinstall filename "$HOME/.zshrc"
129 # End of lines added by compinstall
131 if [ "x$WINDOW" = "x" ]; then
132 if which fortune 2>&1 >/dev/null; then
137 if [ -e ".motd" ]; then
141 if which ssh-agent-manager 2>&1 >/dev/null; then
142 eval `ssh-agent-manager -s`