starship を導入した

zsh のプロンプトが簡素すぎたので導入!

brew install starship

して

if command -v starship >/dev/null 2>&1; then
        eval "$(starship init zsh)"
fi

を .zshrc に追記した。

~/.config/starship.toml を以下のように設定。

# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'

# Inserts a blank line between shell prompts
add_newline = true

[directory]
truncation_length = 100
truncate_to_repo = false

Published: 2025-01-01(Wed) 14:21