From 7a46fd5edea3e5fc98fc0015c3136001e6086fde Mon Sep 17 00:00:00 2001 From: william wu Date: Mon, 14 Nov 2022 21:42:35 +0100 Subject: [PATCH] added oh-my-zsh like git status (with count of the file changed) --- .config/starship.toml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.config/starship.toml b/.config/starship.toml index 90b2553..1d6d72d 100644 --- a/.config/starship.toml +++ b/.config/starship.toml @@ -21,6 +21,7 @@ disabled = false [character] # The name of the module we are configuring is "character" success_symbol = "[➜](bold green)" # The "success_symbol" segment is being set to "➜" with the color "bold green" error_symbol = "[✗](bold red)" + #   # configure directory [directory] @@ -65,6 +66,17 @@ symbol = " " [git_branch] symbol = " " +[git_status] +format = '([\[$all_status$ahead_behind\]]($style) )' +stashed = "[${count}*](green)" +modified = "[${count}+](yellow)" +deleted = "[${count}-](red)" +conflicted = "[${count}~](red)" +ahead = "⇡${count}" +behind = "⇣${count}" +untracked = "[${count}?](blue)" +staged = "[${count}+](green)" + [golang] symbol = " "