From 794ec3f0d367cd625c753827fae6e62aee9dd2bb Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Fri, 30 Sep 2022 09:51:02 +0200 Subject: [PATCH] git in prompt --- .config/starship.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.config/starship.toml b/.config/starship.toml index 994dfe0..1e985a7 100644 --- a/.config/starship.toml +++ b/.config/starship.toml @@ -4,6 +4,7 @@ format = """\ $hostname\ $directory\ $git_branch\ +$git_commit\ $git_state\ $git_status\ ($character)\ @@ -30,11 +31,12 @@ style = "italic bold" format = "[$symbol$branch]($style)" style = "fg:#559955" symbol = " " -truncation_length = 8 +truncation_length = 16 truncation_symbol = "" [git_commit] -style = "" +format = "[ $hash$tag]($style) " +style = "fg:#559955" [git_state] style = ""