]> Freerunner's - dotfiles.git/commitdiff
starship: restore command duration
authorAndre Ramnitz <tux.rising@gmail.com>
Sat, 19 Apr 2025 22:34:02 +0000 (00:34 +0200)
committerAndre Ramnitz <tux.rising@gmail.com>
Sat, 19 Apr 2025 22:34:02 +0000 (00:34 +0200)
dot-config/starship.toml

index 73bd66bd218697ef9b97f70a54c1e573925784d2..652723d4e8645407f27868a837f4f780522c96e4 100644 (file)
@@ -16,9 +16,18 @@ ${git_status}\
 [ ](fg:green bg:bright-black)\
 $c\
 $rust\
-[  ](bg:bright-black fg:189)[](fg:bright-black bg:default)\
+${cmd_duration}[  ](bg:bright-black fg:189)[](fg:bright-black bg:default)\
 \n$character"""
 
+[cmd_duration]
+min_time = 2000
+format = '[$duration]($style)'
+style = 'fg:yellow bg:bright-black'
+show_milliseconds = false
+disabled = false
+show_notifications = false
+min_time_to_notify = 45000
+
 [character]
 success_symbol = '[❯](bold green) '
 error_symbol = '[❯](bold red) '