極力シンプルに!
# Terminal 設定
export TERM=xterm-256color
# 履歴設定
HISTFILE=~/.zsh_history
HISTSIZE=100000
SAVEHIST=100000
# 補完設定
if type brew &>/dev/null; then
# zsh-completions の設定
FPATH=$(brew --prefix)/share/zsh-completions:$FPATH
# zsh-autosuggestions の設定
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
autoload -Uz compinit
compinit
fi
# ページャの設定
export LESS='-FRX'
# Homebrew の Git を使うようにする
export PATH=/usr/local/bin/git:$PATH
# プロンプトにブランチ名を表示
function parse_git_branch {
git symbolic-ref --short HEAD 2>/dev/null
}
setopt PROMPT_SUBST
PROMPT='%1~ $(parse_git_branch) %# '