oh-my-posh/website/docs/segments
Jan De Dobbeleer 28f6c19309 feat(git): replace branch properties with template
BREAKING CHANGE: this removes branch properties from the git segment
and replaces them with a single template. To migrate, use the following
guide.

*branch_max_length*

`"branch_max_length": 5` -> `"branch_template": "{{ trunc 5 .Branch }}"`

This will turn `feature/test-this-branch` into `featu`

If you want to display a truncate symbol at the end of the branch name:

`"branch_template": "{{ truncE 5 .Branch }}"`

This will turn `feature/test-this-branch` into `feat…`

*full_branch_path*

`"full_branch_path": false` -> `"branch_template": "{{ base .Branch }}"`

This will turn `feature/test-this-branch` into `test-this-branch`
2025-02-27 08:48:41 +01:00
..
cli feat(segments): add bun.lock file support for bun v1.2+ 2025-02-27 08:48:41 +01:00
cloud feat(language): allow tweaking version cache 2024-11-08 16:15:29 +01:00
health docs: use Config component instead of raw JSON 2024-11-04 12:15:40 +01:00
languages docs(go): update symbol 2024-12-14 16:16:03 +01:00
music refactor: remove unused cache_timeout references 2024-11-04 12:15:40 +01:00
scm feat(git): replace branch properties with template 2025-02-27 08:48:41 +01:00
system feat(language): allow tweaking version cache 2024-11-08 16:15:29 +01:00
web docs: use Config component instead of raw JSON 2024-11-04 12:15:40 +01:00