Skip to content

Instantly share code, notes, and snippets.

@ryo-ARAKI
Last active April 28, 2024 23:14
Show Gist options
  • Save ryo-ARAKI/48a11585299f9032fa4bda60c9bba593 to your computer and use it in GitHub Desktop.
Save ryo-ARAKI/48a11585299f9032fa4bda60c9bba593 to your computer and use it in GitHub Desktop.
Starship configuration file
# ~/.config/starship.toml
[battery]
full_symbol = "๐Ÿ”‹"
charging_symbol = "๐Ÿ”Œ"
discharging_symbol = "โšก"
[[battery.display]]
threshold = 30
style = "bold red"
[character]
error_symbol = "[โœ–](bold red) "
[cmd_duration]
min_time = 10_000 # Show command duration over 10,000 milliseconds (=10 sec)
format = " took [$duration]($style)"
[directory]
truncation_length = 5
format = "[$path]($style)[$lock_symbol]($lock_style) "
[git_branch]
format = " [$symbol$branch]($style) "
symbol = "๐Ÿฃ "
style = "bold yellow"
[git_commit]
commit_hash_length = 8
style = "bold white"
[git_state]
format = '[\($state( $progress_current of $progress_total)\)]($style) '
[git_status]
conflicted = "โš”๏ธ "
ahead = "๐ŸŽ๏ธ ๐Ÿ’จ ร—${count}"
behind = "๐Ÿข ร—${count}"
diverged = "๐Ÿ”ฑ ๐ŸŽ๏ธ ๐Ÿ’จ ร—${ahead_count} ๐Ÿข ร—${behind_count}"
untracked = "๐Ÿ›ค๏ธ ร—${count}"
stashed = "๐Ÿ“ฆ "
modified = "๐Ÿ“ ร—${count}"
staged = "๐Ÿ—ƒ๏ธ ร—${count}"
renamed = "๐Ÿ“› ร—${count}"
deleted = "๐Ÿ—‘๏ธ ร—${count}"
style = "bright-white"
format = "$all_status$ahead_behind"
[hostname]
ssh_only = false
format = "<[$hostname]($style)>"
trim_at = "-"
style = "bold dimmed white"
disabled = true
[julia]
format = "[$symbol$version]($style) "
symbol = "เฎƒ "
style = "bold green"
[memory_usage]
format = "$symbol[${ram}( | ${swap})]($style) "
threshold = 70
style = "bold dimmed white"
disabled = false
[package]
disabled = true
[python]
format = "[$symbol$version]($style) "
style = "bold green"
[rust]
format = "[$symbol$version]($style) "
style = "bold green"
[time]
time_format = "%T"
format = "๐Ÿ•™ $time($style) "
style = "bright-white"
disabled = false
[username]
style_user = "bold dimmed blue"
show_always = false
[nodejs]
format = "via [๐Ÿค– $version](bold green) "
@plsnotracking
Copy link

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.zsh

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment