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: #61
Co-authored-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
Co-committed-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
This commit is contained in:
João Paulo Dubas 2024-08-22 18:21:33 +00:00 committed by João Paulo Dubas
parent b5ce962e65
commit f059ce2079

View File

@ -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)"