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
42 setopt pushd_ignore_dups
44 setopt sh_file_expansion
45 setopt always_last_prompt
47 setopt hist_ignore_all_dups
48 setopt hist_ignore_space
49 setopt inc_append_history
52 PROMPT=$'%{\ek\e\\%}%B[%n@%m] %#%b '
53 RPROMPT='%U%?%u %U%D{%m/%d}%u %U%D{%T}%u %U%~%u'
54 HISTFILE="$HOME/.zhistory"
74 alias top='top -X -s 7 -ocpu -Otime -F -R -t'
75 alias unstuff='open -a StuffIt\ Expander.app'
76 alias pa='open -a NiseRingo.app'
78 alias ed='ed -p "ed> "'
81 alias mwget="wget --user-agent='Mozilla/1.4b'"
82 alias pstow="pushd /usr/local/stow"
83 alias safari="open -a Safari"
84 alias w3m="w3m -O UTF-8"
85 alias w3mb="w3m -O UTF-8 -B"
87 alias cmus="cmus 2>/dev/null"
88 alias heboris='open /Applications/HeborisUEMac/exe/Heboris\ OpenGL.app'
91 `firefox -remote "openurl($1,new-tab)"`
95 sudo nice -n -20 sudo -u ${USER} $@
98 alias startcow='cd ~/Applications/dnetc*; ./dnetc -shutdown; ./dnetc'
99 alias pausecow='~/Applications/dnetc*/dnetc -pause'
100 alias resumecow='~/Applications/dnetc*/dnetc -unpause'
102 alias startnekoko='cd ~/development/NekokoAndShota; ./nekosho -d nekoko-ord'
103 alias startshota='cd ~/development/NekokoAndShota; ./nekosho -d shota-ord'
105 alias startbottle='cd ~/development/bottleuploadcatcher; ./catcher'
107 #alias tome='open ~/Applications/ToME*/T.o.M.E.*'
108 alias hengband='open ~/Applications/hengband*/Hengband*'
110 function verbose_comp {
111 zstyle ':completion:*' verbose yes
112 zstyle ':completion:*:descriptions' format '%B%d%b'
113 zstyle ':completion:*:messages' format '%d'
114 zstyle ':completion:*:warnings' format 'No matches for: %d'
115 zstyle ':completion:*' group-name ''
119 # The following lines were added by compinstall
121 zstyle :compinstall filename '/Users/admin/.zshrc'
125 # End of lines added by compinstall
127 if [ "x$WINDOW" = "x" ]; then
131 if [ -e ".motd" ]; then
135 function initscreen {
140 cd ~/sandbox/impfarm/client && \
141 echo "Type ./impfarm.sh to start IMP";;
145 cd ~/var/folding-at-home;;
146 #cd ~/var/futasuke && \
147 # echo "Type ./start.sh to start futasuke";;
150 if [ "x$WINDOW" != "x" ] && [ "x$INITSCREEN" != "xdone" ]; then
151 export INITSCREEN="done"
155 #if [ "$DISPLAY" = "" ]; then
156 # export DISPLAY=":0.0"
159 eval `ssh-agent-manager -s`