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
65 PROMPT=$'%{\ek_\e\\%}'$_prompt_base
71 if ( _we_are_in_gnu_screen ); then
72 local cmd=${1[(wr)^(*=*|sudo|nice|env|time|-*|[0-9]*)]}
77 RPROMPT='%U%D{%m/%d}%u %U%D{%T}%u %U%~%u'
79 HISTFILE="$HOME/.zhistory"
94 alias ed='ed -p "ed> "'
97 alias mwget="wget --user-agent='Mozilla/1.4b'"
98 alias pstow="pushd /usr/local/stow"
99 alias w3m="w3m -O UTF-8"
100 alias w3mb="w3m -O UTF-8 -B"
101 alias pkgsrc="pushd /usr/pkgsrc"
103 alias aria="ssh -X admin@aria.cielonegro.org"
104 alias nem="ssh -X pho@nem.cielonegro.org"
105 alias mikasa="ssh -X daimon@mikasa.tomilab.net"
107 alias aria-emacs="ssh -f -X admin@aria.cielonegro.org emacs"
109 alias g1="ssh pho@g1.cuenote.jp"
110 alias g2="ssh pho@g2.cuenote.jp"
111 alias mana="ssh pho@mana"
113 if [ $(hostname) = "aria.cielonegro.org" ]; then
114 alias safari="open -a Safari"
115 alias unstuff='open -a StuffIt\ Expander.app'
116 alias pa='open -a NiseRingo.app'
117 alias heboris='open /Applications/HeborisUEMac/exe/Heboris\ OpenGL.app'
118 alias hengband='open ~/Applications/hengband*/Hengband*'
121 if [ $(uname) = "Darwin" ]; then
135 # The following lines were added by compinstall
137 zstyle :compinstall filename "$HOME/.zshrc"
141 # End of lines added by compinstall
143 if [ "x$WINDOW" = "x" ]; then
144 if which fortune 2>&1 >/dev/null; then
149 if [ -e ".motd" ]; then
153 if which ssh-agent-manager 2>&1 >/dev/null; then
154 eval `ssh-agent-manager -s`