Created
December 9, 2012 06:20
-
-
Save kubosho/4243574 to your computer and use it in GitHub Desktop.
Zshをかわいくする.zshrcの設定 ref: http://qiita.com/items/c200680c26e509a4f41c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 色設定 | |
autoload -U colors; colors | |
# もしかして機能 | |
setopt correct | |
# PCRE 互換の正規表現を使う | |
setopt re_match_pcre | |
# プロンプトが表示されるたびにプロンプト文字列を評価、置換する | |
setopt prompt_subst | |
# プロンプト指定 | |
PROMPT=" | |
[%n] %{${fg[yellow]}%}%~%{${reset_color}%} | |
%(?.%{$fg[green]%}.%{$fg[blue]%})%(?!(*'-') <!(*;-;%)? <)%{${reset_color}%} " | |
# プロンプト指定(コマンドの続き) | |
PROMPT2='[%n]> ' | |
# もしかして時のプロンプト指定 | |
SPROMPT="%{$fg[red]%}%{$suggest%}(*'~'%)? < もしかして %B%r%b %{$fg[red]%}かな? [そう!(y), 違う!(n),a,e]:${reset_color} " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment