From f059ce20798540742e6dadc31b4211d436fbde4a Mon Sep 17 00:00:00 2001 From: Joao P Dubas Date: Thu, 22 Aug 2024 18:21:33 +0000 Subject: [PATCH] feat(starship): add two folders to represent directory (#61) This overrides the git truncation, which shows only the path and makes it easier to work with git worktrees. Reviewed-on: https://gitea.dubas.dev/joao.dubas/ide/pulls/61 Co-authored-by: Joao P Dubas Co-committed-by: Joao P Dubas --- 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)"