7 setenv () { export $1="$@[2,-1]" }
8 unsetenv () { unset $1 }
10 #zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z} r:|[-_./]=* r:|=*'
11 zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z} r:|[/]=* r:|=*'
12 zstyle ':completion:*' use-cache true
14 fpath=($HOME/.zfunc $fpath)
15 autoload -U ~/.zfunc/*(:t)
19 unfunction $f:t 2> /dev/null
23 _cache_hosts=(`perl -ne 'if (/^([a-zA-Z0-9.-]+)/) { print "$1\n";}' ~/.ssh/known_hosts`)
30 setopt auto_param_keys
31 setopt auto_param_slash
32 setopt auto_remove_slash
35 setopt complete_aliases
43 setopt pushd_ignore_dups
45 setopt sh_file_expansion
46 setopt always_last_prompt
48 setopt hist_ignore_all_dups
49 setopt hist_ignore_space
50 setopt inc_append_history
53 PROMPT=$'%{\ek\e\\%}%B[%n@%m] %#%b '
54 RPROMPT='%U%?%u %U%D{%m/%d}%u %U%D{%T}%u %U%~%u'
55 HISTFILE="$HOME/.zhistory"
75 alias top='top -X -s 7 -ocpu -Otime -F -R -t'
76 alias unstuff='open -a StuffIt\ Expander.app'
77 alias pa='open -a NiseRingo.app'
79 alias ed='ed -p "ed> "'
82 alias mwget="wget --user-agent='Mozilla/1.4b'"
83 alias pstow="pushd /usr/local/stow"
84 alias safari="open -a Safari"
85 alias w3m="w3m -O UTF-8"
86 alias w3mb="w3m -O UTF-8 -B"
88 alias cmus="cmus 2>/dev/null"
89 alias heboris='open /Applications/HeborisUEMac/exe/Heboris\ OpenGL.app'
92 `firefox -remote "openurl($1,new-tab)"`
96 sudo nice -n -20 sudo -u ${USER} $@
99 alias startcow='cd ~/Applications/dnetc*; ./dnetc -shutdown; ./dnetc'
100 alias pausecow='~/Applications/dnetc*/dnetc -pause'
101 alias resumecow='~/Applications/dnetc*/dnetc -unpause'
103 alias startnekoko='cd ~/development/NekokoAndShota; ./nekosho -d nekoko-ord'
104 alias startshota='cd ~/development/NekokoAndShota; ./nekosho -d shota-ord'
106 alias startbottle='cd ~/development/bottleuploadcatcher; ./catcher'
108 #alias tome='open ~/Applications/ToME*/T.o.M.E.*'
109 alias hengband='open ~/Applications/hengband*/Hengband*'
111 function verbose_comp {
112 zstyle ':completion:*' verbose yes
113 zstyle ':completion:*:descriptions' format '%B%d%b'
114 zstyle ':completion:*:messages' format '%d'
115 zstyle ':completion:*:warnings' format 'No matches for: %d'
116 zstyle ':completion:*' group-name ''
120 # The following lines were added by compinstall
122 zstyle :compinstall filename '/Users/admin/.zshrc'
126 # End of lines added by compinstall
128 if [ "x$WINDOW" = "x" ]; then
132 if [ -e ".motd" ]; then
136 function initscreen {
141 cd ~/sandbox/impfarm/client && \
142 echo "Type ./impfarm.sh to start IMP";;
146 cd ~/var/folding-at-home;;
147 #cd ~/var/futasuke && \
148 # echo "Type ./start.sh to start futasuke";;
151 if [ "x$WINDOW" != "x" ] && [ "x$INITSCREEN" != "xdone" ]; then
152 export INITSCREEN="done"
156 #if [ "$DISPLAY" = "" ]; then
157 # export DISPLAY=":0.0"
160 eval `ssh-agent-manager -s`