0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

.zshrc 設定メモ

Last updated at Posted at 2025-08-20

極力シンプルに!

# 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) %# '
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?