Merge branch 'vendor/MPFR' into gcc441
[dragonfly.git] / nrelease / gui / root / .zshrc
1 autoload -U compinit promptinit
2 compinit
3 zmodload -i zsh/complist
4
5 alias ls='ls -G -F -h'
6 alias df='df -h'
7 alias vi='vim'
8 alias du='du -hsc'
9
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%}') "
11
12 bindkey "\e[7~" beginning-of-line
13 bindkey "\e[8~" end-of-line
14 bindkey "\e[3~" delete-char
15
16 export PAGER=less
17 export EDITOR=vim
18 export HISTSIZE=10000
19 export SAVEHIST=10000
20 export HISTFILE=~/.history
21 export CVS_RSH=ssh
22 setopt append_history SHARE_HISTORY
23 setopt HIST_EXPIRE_DUPS_FIRST
24 setopt HIST_REDUCE_BLANKS
25 setopt NO_FLOW_CONTROL
26
27 case $TERM in
28     cons25)
29         ;;
30         *)
31         precmd () {print -Pn "\e]0;%n@%m: %~\a"}
32         ;;
33 esac
34
35 # for switching to dvorak
36 mamma() {
37         DVORAK=`setxkbmap -print|grep -c dvorak`
38         if [ "$DVORAK" = "1" ]; then
39                 setxkbmap us
40                 echo "Keyboard layout: QWERTY"
41         else
42                 setxkbmap dvorak
43                 echo "Keyboard layout: DVORAK"
44         fi
45 }
46
47 zstyle ':completion:*:descriptions' format '%B%d%b'
48 zstyle ':completion:*:messages' format '%d'
49 zstyle ':completion:*:warnings' format 'No matches for: %d'