From 50fb6f50ffd98a06a75c57d9df51cd1233c265d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Sun, 10 Dec 2023 00:06:46 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20ux(starship):=20added=20git=20me?= =?UTF-8?q?trics,=20cmd=20duration=20and=20custom.list-folders=20modules?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/starship/starship.toml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.config/starship/starship.toml b/.config/starship/starship.toml index a9b0c002..69ffc28f 100644 --- a/.config/starship/starship.toml +++ b/.config/starship/starship.toml @@ -4,6 +4,16 @@ # Inserts a blank line between shell prompts add_newline = true +[cmd_duration] +min_time = 2000 +format = "[󰔟 $duration](bold cyan)" + +[git_metrics] +disabled = false +added_style = "green" +deleted_style = "red" +format = '(\([+$added]($added_style)/[-$deleted]($deleted_style)\)) ' + [git_status] ahead = '[ $count](bold green) ' conflicted = '[󱡂 ](bold red) ' @@ -30,6 +40,15 @@ style = "blue" format = "[ ]($style)" detect_files = ["hyprland.conf"] +[custom.folder_number] +description = "Number of files (and folders) in the current working directory" +command = "fd -H --min-depth 1 --max-depth 1 | wc -l" +when = "true" +require_repo = true +symbol = " " +style = "blue bold" +format = '[$symbol$output]($style) ' + [aws] symbol = " " @@ -46,7 +65,7 @@ symbol = " " symbol = " " [directory] -read_only = "󰌾 " +read_only = " 󰌾 " home_symbol = " " truncation_length = 3