.zshrcとか

githubで公開するようなことでもないので、

メモ書きとして。

# Created by newuser for 4.3.10
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt hist_ignore_dups # ignore duplication command history list
setopt share_history # share command history data
bindkey -v
setopt auto_cd
setopt auto_pushd
setopt list_packed

case ${UID} in
0)
PROMPT="%B%{ESC[31m%}%/#%{ESC[m%}%b "
RPROMPT="%{ESC[31m%}%T"
PROMPT2="%B%{ESC[31m%}%_#%{ESC[m%}%b "
SPROMPT="%B%{ESC[31m%}%r is correct? [n,y,a,e]:%{ESC[m%}%b "
[ -n "${REMOTEHOST}${SSH_CONNECTION}" ] &&
PROMPT="%{ESC[37m%}${HOST%%.*} ${PROMPT}"
;;
*)
PROMPT="%/%{ESC[31m%}%%%{ESC[m%} "
RPROMPT="%{ESC[34m%}%T%{ESC[m%}"
PROMPT2="%{ESC[31m%}%_%%%{ESC[m%} "
SPROMPT="%{ESC[31m%}%r is correct? [n,y,a,e]:%{ESC[m%} "
[ -n "${REMOTEHOST}${SSH_CONNECTION}" ] &&
PROMPT="%{ESC[37m%}${HOST%%.*} ${PROMPT}"
;;
esac

setopt correct
autoload -U compinit
compinit
autoload predict-on
predict-on

vimではESCはC-v,Esc。

Comments are closed, but you can leave a trackback: Trackback URL.