Skip to content

Instantly share code, notes, and snippets.

@esnya
Created April 14, 2015 09:25
Show Gist options
  • Save esnya/d40bf36429bc4ce225a5 to your computer and use it in GitHub Desktop.
Save esnya/d40bf36429bc4ce225a5 to your computer and use it in GitHub Desktop.
bindkey -v
setopt auto_cd
setopt auto_pushd
cpdpath=(~)
chpwd_functions=($chpwd_functions dir)
HISTFILE=~/.zsh_history
HISTSIZE=6000000
SAVEHIST=6000000
setopt extended_history
setopt hist_ignore_dups
setopt share_history
setopt inc_append_history
autoload -U compinit
compinit -u
zstyle ':completion:*' verbose yes
zstyle ':completion:*' format '%B%d%b'
zstyle ':completion:*:warnings' format 'No matches for: %d'
zstyle ':completion:*' group-name ''
setopt no_flow_control
setopt prompt_subst
setopt prompt_percent
setopt transient_rprompt
autoload -Uz colors; colors
if [ $USER = "root" ] ; then
PROMPT="%(?.%{$fg[green]%}.%{$fg[blue]%})%n@%m %(?!(*'-')!(*;-;%)?)%{${reset_color}%}# "
PROMPT2='[%n]> '
setopt correct
SPROMPT="%{$fg[red]%}%{$suggest%}(*'~'%)? もしかして %B%r%b %{$fg[red]%}かな? [そう!(y), 違う!(n),a,e]:${reset_color} "
else
PROMPT="%(?.%{$fg[green]%}.%{$fg[blue]%})%n@%m %(?!(*'-')!(*;-;%)?)%{${reset_color}%} "
PROMPT2='[%n]> '
setopt correct
SPROMPT="%{$fg[red]%}%{$suggest%}(*'~'%)? もしかして %B%r%b %{$fg[red]%}かな? [そう!(y), 違う!(n),a,e]:${reset_color} "
fi
RPROMPT="[%~]"
if [ ! -f ~/.zshrc.zwc -o ~/.zshrc -nt ~/.zshrc.zwc ]; then
zcompile ~/.zshrc
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment