From bc71cdb8eaa68353db4b561e671d0a70e6549245 Mon Sep 17 00:00:00 2001 From: dakkar Date: Wed, 8 Jan 2025 16:51:29 +0000 Subject: show command duration on prompt --- .config/starship.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.config/starship.toml b/.config/starship.toml index 8418b47..5999546 100644 --- a/.config/starship.toml +++ b/.config/starship.toml @@ -32,6 +32,7 @@ $vagrant\ [](fg:jobs)\ $jobs\ [](fg:jobs bg:status)\ +$cmd_duration\ $status\ [](fg:status) \ """ @@ -169,6 +170,12 @@ style = 'bg:status fg:status_fg' format = '[$symbol$maybe_int$signal_name]($style)' success_symbol = '' +[cmd_duration] +disabled = false +min_time = 2000 +style = 'bg:status fg:status_fg' +format = '[⌚$duration]($style)' + [sudo] disabled = true format = '[as $symbol]($style)' -- cgit v1.2.3