バックアップもかねてzshrc
# Enable compsys completion. autoload -U compinit compinit zstyle ':completion:*:default' menu select=1 # Menu like emacs. zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} # color completion. bindkey -e # keybind is emacs. # Prompt setopt prompt_subst PROMPT='%{%(?.$fg[green].$fg[red])%}[%n@%m]%# %{$reset_color%}' # left prompt RPROMPT='[%~]' autoload -U colors colors # History HISTFILE=$HOME/.zsh-history HISTSIZE=10000 SAVEHIST=10000 setopt extended_history # save command time. setopt share_history # share history in terms. setopt append_history # append function history-all { history -E 1 } # Beep setopt no_beep # cd setopt auto_pushd setopt pushd_ignore_dups # PATH # For homebrew export PATH="/usr/local/bin:/usr/local/sbin:$PATH" export MANPATH=/usr/local/man:$MANPATH