🎨 ux(starship): added git metrics, cmd duration and custom.list-folders modules
This commit is contained in:
parent
ae5f09e437
commit
50fb6f50ff
1 changed files with 20 additions and 1 deletions
|
@ -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 = " "
|
||||||
|
|
||||||
|
@ -46,7 +65,7 @@ symbol = " "
|
||||||
symbol = " "
|
symbol = " "
|
||||||
|
|
||||||
[directory]
|
[directory]
|
||||||
read_only = " "
|
read_only = " "
|
||||||
home_symbol = " "
|
home_symbol = " "
|
||||||
truncation_length = 3
|
truncation_length = 3
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue