commit 8825a0e864f042d10ee0ae21f38ed22b55a6f8a6
parent 226884599cbb7b9a962a31c65a01a47680d5e23f
Author: Toni Brown <me@tb148.eu.org>
Date: Thu, 13 Nov 2025 13:20:57 +0800
Update starship.nix
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/starship.nix b/starship.nix
@@ -13,7 +13,7 @@
"$line_break"
"$character"
];
- right_format = "$directory";
+ right_format = "$git_branch$directory";
continuation_prompt = "[> ](fg:overlay1)";
username = {
format = "[$user]($style) says:";
@@ -29,8 +29,12 @@
vimcmd_replace_symbol = "[<](bold fg:lavender)";
vimcmd_visual_symbol = "[<](bold fg:yellow)";
};
+ git_branch = {
+ format = "[( $branch of)]($style)";
+ style = "fg:overlay1";
+ };
directory = {
- format = "[$path]($style)[$read_only]($read_only_style)";
+ format = "[ $path]($style)[( $read_only)]($read_only_style)";
style = "fg:overlay1";
read_only_style = "fg:overlay1";
};