1 autoload -U compinit promptinit
3 zmodload -i zsh/complist
10 PS1="$(print '%{\e[1;34m%}(%{\e[1;31m%}%M%{\e[1;34m%})%{\e[1;36m%}-%{\e[1;34m%}(%{\e[0m%}%C%{\e[1;34m%})%{\e[1;36m%}-%{\e[1;31m%}%#%{\e[0m%}') "
12 bindkey "
\e[7~" beginning-of-line
13 bindkey "
\e[8~" end-of-line
14 bindkey "
\e[3~" delete-char
20 export HISTFILE=~/.history
22 setopt append_history SHARE_HISTORY
23 setopt HIST_EXPIRE_DUPS_FIRST
24 setopt HIST_REDUCE_BLANKS
25 setopt NO_FLOW_CONTROL
31 precmd () {print -Pn "\e]0;%n@%m: %~\a"}
35 # for switching to dvorak
37 DVORAK=`setxkbmap -print|grep -c dvorak`
38 if [ "$DVORAK" = "1" ]; then
40 echo "Keyboard layout: QWERTY"
43 echo "Keyboard layout: DVORAK"
48 if [ ! -f /tmp/.firstLogin ]; then
50 touch /tmp/.firstLogin
54 zstyle ':completion:*:descriptions' format '%B%d%b'
55 zstyle ':completion:*:messages' format '%d'
56 zstyle ':completion:*:warnings' format 'No matches for: %d'