xref: /dragonfly/nrelease/gui/root/.zshrc (revision 0fe46dc6)
1autoload -U compinit promptinit
2compinit
3zmodload -i zsh/complist
4
5alias ls='ls -G -F -h'
6alias df='df -h'
7alias vi='vim'
8alias du='du -hsc'
9
10PS1="$(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
12bindkey "[7~" beginning-of-line
13bindkey "[8~" end-of-line
14bindkey "[3~" delete-char
15
16export PAGER=less
17export EDITOR=vim
18export HISTSIZE=10000
19export SAVEHIST=10000
20export HISTFILE=~/.history
21export CVS_RSH=ssh
22setopt append_history SHARE_HISTORY
23setopt HIST_EXPIRE_DUPS_FIRST
24setopt HIST_REDUCE_BLANKS
25setopt NO_FLOW_CONTROL
26
27case $TERM in
28    cons25)
29	;;
30	*)
31        precmd () {print -Pn "\e]0;%n@%m: %~\a"}
32	;;
33esac
34
35# for switching to dvorak
36mamma() {
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
47zstyle ':completion:*:descriptions' format '%B%d%b'
48zstyle ':completion:*:messages' format '%d'
49zstyle ':completion:*:warnings' format 'No matches for: %d'
50