Skip to content

Instantly share code, notes, and snippets.

@jairusjoer
Last active August 5, 2024 22:13
Show Gist options
  • Save jairusjoer/3704ead21128deb94435c5a8787cf268 to your computer and use it in GitHub Desktop.
Save jairusjoer/3704ead21128deb94435c5a8787cf268 to your computer and use it in GitHub Desktop.
My personal configuration for starship.rs
format = """
$directory\
[](fg:#313244 bg:#45475a)\
$git_branch\
$git_status\
[](fg:#45475a bg:#585b70)\
$nodejs\
$rust\
$golang\
$php\
[ ](fg:#585b70)\
"""
[directory]
style = "fg:#cdd6f4 bg:#313244"
format = "[ $path ]($style)"
truncation_length = 3
truncation_symbol = "…/"
[git_branch]
symbol = ""
style = "bg:#45475a"
format = '[[ $symbol $branch ](fg:#cdd6f4 bg:#45475a)]($style)'
[git_status]
style = "bg:#45475a"
format = '[[($all_status$ahead_behind) ](fg:#cdd6f4 bg:#45475a)]($style)'
[nodejs]
symbol = ""
version_format = "${major}"
style = "bg:#585b70"
format = '[[ $symbol ($version) ](fg:#cdd6f4 bg:#585b70)]($style)'
[rust]
symbol = ""
version_format = "${major}"
style = "bg:#585b70"
format = '[[ $symbol ($version) ](fg:#cdd6f4 bg:#585b70)]($style)'
[golang]
symbol = "ﳑ"
version_format = "${major}"
style = "bg:#585b70"
format = '[[ $symbol ($version) ](fg:#cdd6f4 bg:#585b70)]($style)'
[php]
symbol = ""
version_format = "${major}.${minor}"
style = "bg:#585b70"
format = '[[ $symbol ($version) ](fg:#cdd6f4 bg:#585b70)]($style)'
@jairusjoer
Copy link
Author

Requires Nerd Fonts for proper icon display.

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