Last active
March 12, 2026 02:14
-
Star
(206)
You must be signed in to star a gist -
Fork
(36)
You must be signed in to fork a gist
-
-
Save ryo-ARAKI/48a11585299f9032fa4bda60c9bba593 to your computer and use it in GitHub Desktop.
Starship configuration file
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
| # ~/.config/starship.toml | |
| # NOTE: Emojis with variation selectors or unstable display widths may cause prompt rendering glitches. | |
| # Examples include โ๏ธ ๐๏ธ ๐๏ธ ๐๏ธ โ๏ธ | |
| # If layout breaks, prefer colourful emojis without variation selectors. | |
| format = """ | |
| $username$hostname$directory$git_branch$git_commit$git_state$git_metrics$git_status$julia$python$rust$conda$direnv$fill$memory_usage$cmd_duration$battery$time | |
| $character""" | |
| # Switch palettes here: ocean_workshop | amber_console | cool_minimal | |
| palette = "amber_console" | |
| [palettes.ocean_workshop] | |
| directory = "cyan" | |
| git_branch = "blue" | |
| git_state = "red" | |
| runtime = "green" | |
| warning = "yellow" | |
| muted = "bright-black" | |
| accent = "bright-white" | |
| added = "green" | |
| deleted = "red" | |
| [palettes.amber_console] | |
| directory = "yellow" | |
| git_branch = "cyan" | |
| git_state = "red" | |
| runtime = "yellow" | |
| warning = "208" | |
| muted = "bright-black" | |
| accent = "white" | |
| added = "green" | |
| deleted = "red" | |
| [palettes.cool_minimal] | |
| directory = "white" | |
| git_branch = "cyan" | |
| git_state = "red" | |
| runtime = "green" | |
| warning = "yellow" | |
| muted = "bright-black" | |
| accent = "bright-white" | |
| added = "green" | |
| deleted = "red" | |
| [battery] | |
| full_symbol = "๐" | |
| charging_symbol = "๐" | |
| discharging_symbol = "โก" | |
| [[battery.display]] | |
| threshold = 30 | |
| style = "bold git_state" | |
| [character] | |
| error_symbol = "[โ](bold red) " | |
| [cmd_duration] | |
| min_time = 10_000 # Show command duration over 10,000 milliseconds (=10 sec) | |
| format = " took [$duration]($style)" | |
| style = "bold warning" | |
| [conda] | |
| format = '[$symbol$environment](dimmed green) ' | |
| [directory] | |
| fish_style_pwd_dir_length = 2 | |
| format = "[$path]($style)[$lock_symbol]($lock_style)" | |
| style = "bold directory" | |
| [direnv] | |
| disabled = false | |
| format = "[$symbol$loaded]($style) " | |
| symbol = "env " | |
| style = "muted" | |
| [fill] | |
| symbol = " " | |
| [git_branch] | |
| format = " on [$symbol$branch]($style) " | |
| symbol = "๐ฃ " | |
| style = "bold git_branch" | |
| [git_commit] | |
| commit_hash_length = 8 | |
| style = "bold accent" | |
| [git_state] | |
| format = "[[$state( $progress_current/$progress_total)]]($style) " | |
| style = "bold git_state" | |
| [git_metrics] | |
| disabled = false | |
| format = "([+$added]($added_style) )([-$deleted]($deleted_style) )" | |
| added_style = "bold added" | |
| deleted_style = "bold deleted" | |
| only_nonzero_diffs = true | |
| [git_status] | |
| conflicted = "๐ฅ " | |
| ahead = "๐ ร${count} " | |
| behind = "๐ข ร${count} " | |
| diverged = "๐ฑ ๐ ร${ahead_count} ๐ข ร${behind_count} " | |
| untracked = "๐ญ ร${count} " | |
| stashed = "๐ฆ ร${count} " | |
| modified = "๐ ร${count} " | |
| staged = "๐ ร${count} " | |
| renamed = "๐ ร${count} " | |
| deleted = "๐ฎ ร${count} " | |
| style = "bright-white" | |
| format = "$all_status$ahead_behind" | |
| [hostname] | |
| ssh_only = true | |
| format = "[$hostname]($style)" | |
| trim_at = "-" | |
| style = "bold muted" | |
| disabled = false | |
| [julia] | |
| format = "[$symbol$version]($style) " | |
| symbol = "เฎ " | |
| style = "bold runtime" | |
| [memory_usage] | |
| format = "$symbol[${ram}( | ${swap})]($style) " | |
| threshold = 70 | |
| style = "bold muted" | |
| disabled = false | |
| [package] | |
| disabled = true | |
| [python] | |
| format = "[${symbol}${pyenv_prefix}(${version} )(\\($virtualenv\\) )]($style) " | |
| style = "bold runtime" | |
| detect_env_vars = [] | |
| [rust] | |
| format = "[$symbol$version]($style) " | |
| style = "bold runtime" | |
| [time] | |
| time_format = "%R" | |
| format = "๐ $time($style) " | |
| style = "accent" | |
| disabled = false | |
| [typst] | |
| format = "[$symbol($version)]($style)" | |
| symbol = "๐ " | |
| style = "bold #239dae" | |
| [username] | |
| style_user = "bold dimmed blue" | |
| show_always = false | |
| [nodejs] | |
| format = "via [๐ค $version](bold green) " | |
| disabled = true |
Hi,
Thank you for sharing this, I'm pretty new to starship. I've moved from basic .zsh terminal to starship.
I wanted to port my .zshrc configuration to starship, couldn't find proper documentation to follow.
Kind of looking for equivalents of doing aliases. For example:
## cat
alias bat='bat --theme=ansi-dark'
command -v bat > /dev/null && alias cat='bat --pager=never'
## du
command -v dust > /dev/null && alias du='dust'
## find
command -v fd > /dev/null && alias find='fd'
## fzf
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
## git aliases and functions
source $HOME/.config/zsh/git.zsh
## history
source $HOME/.config/zsh/history.zshThank you.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[nodejs] format = 'via [๐ค $version](bold green) 'it will show the git status, but not the Node version
Any idea why?