🎨 ux(starship): added git metrics, cmd duration and custom.list-folders modules

This commit is contained in:
Sergio Laín 2023-12-10 00:06:46 +01:00
parent ae5f09e437
commit 50fb6f50ff
No known key found for this signature in database
GPG key ID: 14C9B8080681777B

View file

@ -4,6 +4,16 @@
# Inserts a blank line between shell prompts # Inserts a blank line between shell prompts
add_newline = true 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] [git_status]
ahead = '[ $count](bold green) ' ahead = '[ $count](bold green) '
conflicted = '[󱡂 ](bold red) ' conflicted = '[󱡂 ](bold red) '
@ -30,6 +40,15 @@ style = "blue"
format = "[ ]($style)" format = "[ ]($style)"
detect_files = ["hyprland.conf"] 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] [aws]
symbol = " " symbol = " "