From a0afcc6643c96d8a59fa79b15958a231f8224842 Mon Sep 17 00:00:00 2001 From: Joao P Dubas Date: Thu, 22 Aug 2024 18:15:20 +0000 Subject: [PATCH] feat(starship): add two folders to represent directory This overrides the git truncation, were only on path is showed, and make it easier to work with git worktrees. --- config/starship/config.toml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/config/starship/config.toml b/config/starship/config.toml index 6dab7f8..540d294 100644 --- a/config/starship/config.toml +++ b/config/starship/config.toml @@ -1,3 +1,5 @@ +"$schema" = 'https://starship.rs/config-schema.json' + format = """ $username\ $hostname\ @@ -8,7 +10,12 @@ $git_status\ $line_break\ $kubernetes\ $line_break\ -$character""" +$character +""" + +[directory] +truncation_length = 2 +truncate_to_repo = false [git_branch] format = "[$branch]($style)"