summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-09-21 10:20:40 +0300
committerLars Wirzenius <liw@liw.fi>2023-09-21 10:20:40 +0300
commit4d70c949845fde77023095be59a7d57ad89616ee (patch)
tree49e5680933dcdfb51e578f2fb5fe9efafa34ae46 /config
parentfa814c81726a2147f025922e3b7f59b987dd1d5d (diff)
downloadliw-dot-files-4d70c949845fde77023095be59a7d57ad89616ee.tar.gz
starship: shorten git branch display
On a Radicle repo, the remote branch name can be very long, so don't show that. Sponsored-by: author
Diffstat (limited to 'config')
-rw-r--r--config/starship/config.toml3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/starship/config.toml b/config/starship/config.toml
index 9470c95..ed19041 100644
--- a/config/starship/config.toml
+++ b/config/starship/config.toml
@@ -8,6 +8,9 @@ error_symbol = "[>](bold bg:red)"
truncate_to_repo = false
style = "bold"
+[git_branch]
+format = 'on [$symbol$branch]($style) '
+
[git_metrics]
disabled = false