zsh始めました

最強とか三種の神器で名高いzshを使ってみる。

とりま初期設定としてプロンプトと色をいじってみる。

追加行
# .zshrc
setopt prompt_subst
PROMPT=$'%{\e[$[32+$RANDOM % 5]m%}%U%B$HOST'$' {%n}%b%%%{\e[m%}%u '
RPROMPT=$'%{\e[33m%}[%~]%{\e[m%}'

setopt hist_ignore_space
setopt hist_ignore_dups # ignore duplication command history list
setopt share_history # share command history data

alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'

参考:
Introduction of the ZSH
http://journal.mycom.co.jp/column/zsh/index.html

P.S.
bashだとコマンドが見つからないとき、
kouichi@akashi:~$ dgb
No command 'dgb' found, did you mean:
Command 'gdb' from package 'gdb' (main)
Command 'dab' from package 'bsdgames' (universe)
Command 'kgb' from package 'kgb' (universe)
dgb: command not found
みたいにパッケージの情報が出るんだけど、zshってやってくれないのだろうか。