Created
January 9, 2026 05:24
-
-
Save mtskf/4a37fd2fbe02b53eda2a5c21f8338e44 to your computer and use it in GitHub Desktop.
starship.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # エディタ補完用のスキーマ | |
| "$schema" = 'https://starship.rs/config-schema.json' | |
| # プロンプト間に空行を挿入 | |
| add_newline = true | |
| # プロンプトのレイアウト | |
| format = """ | |
| $directory$git_branch$git_status$package$nodejs$fill$battery$time | |
| $character""" | |
| [gcloud] | |
| disabled = true | |
| [battery] | |
| full_symbol = '🔋 ' | |
| charging_symbol = '⚡️ ' | |
| discharging_symbol = '🔋 ' | |
| [[battery.display]] | |
| threshold = 30 | |
| style = 'bold yellow' | |
| [[battery.display]] | |
| threshold = 10 | |
| style = 'bold red' | |
| discharging_symbol = '💀 ' | |
| # "on" を消してスッキリ | |
| [git_branch] | |
| symbol = '' | |
| format = '[$symbol$branch(:$remote_branch)]($style) ' | |
| # Git状態を絵文字で表示 | |
| [git_status] | |
| format = '[\[$all_status$ahead_behind\]](purple) ' | |
| conflicted = '💥' | |
| ahead = '⬆️${count}' | |
| behind = '⬇️${count}' | |
| diverged = '🔀⬆️${ahead_count}⬇️${behind_count}' | |
| untracked = '🌚' | |
| stashed = '📥' | |
| modified = '✏️' | |
| staged = '✅' | |
| renamed = "🏷" | |
| deleted = '🗑️' | |
| # パッケージバージョン | |
| # パッケージバージョン前の"is"を消してスッキリ | |
| [package] | |
| disabled = true | |
| # format = '[$symbol$version]($style) ' | |
| # "via" を消してスッキリ | |
| [nodejs] | |
| format = '[$symbol$version]($style) ' | |
| # ディレクトリ表示 | |
| [directory] | |
| format = '📁 [$path]($style) ' | |
| truncation_length = 3 | |
| truncate_to_repo = true | |
| read_only = '🔒' | |
| # 成功/失敗で色を変える | |
| [character] | |
| success_symbol = '[❯](bold green)' | |
| error_symbol = '[❯](bold red)' | |
| # 時刻表示 | |
| [time] | |
| disabled = false | |
| format = '[$time]($style)' | |
| time_format = '%H:%M' | |
| # 区切り線 | |
| [fill] | |
| symbol = '─' | |
| style = 'fg:#252a33' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment