mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-11-28 15:56:28 +00:00
59e8b1fc92
Git branches can become very long (e.g. gitlab auto-generated branch names), thus it would be nice to be able to truncate them to keep your prompt lenght in line. This patch adds two new options to the git_branch module: * truncation_length: The amount of graphemes to of a gitbranch to truncate to * truncation_symbol: The symbol that should be used to indicate that a branch name was trunctated To be able to correctly work with UTF-8 graphemes, unicode-segmentation was added as a dependency. |
||
---|---|---|
.. | ||
character.rs | ||
cmd_duration.rs | ||
common.rs | ||
configuration.rs | ||
directory.rs | ||
git_branch.rs | ||
git_status.rs | ||
golang.rs | ||
jobs.rs | ||
line_break.rs | ||
main.rs | ||
modules.rs | ||
nix_shell.rs | ||
nodejs.rs | ||
python.rs | ||
ruby.rs | ||
username.rs |