From 734e67fb1f6a0791bd81dc863e11979379ea0cf4 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sun, 6 Oct 2024 21:44:41 -0400 Subject: [PATCH] add CMD_DURATION to right prompt --- fish/.config/fish/functions/fish_right_prompt.fish | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 fish/.config/fish/functions/fish_right_prompt.fish diff --git a/fish/.config/fish/functions/fish_right_prompt.fish b/fish/.config/fish/functions/fish_right_prompt.fish new file mode 100644 index 0000000..7513c70 --- /dev/null +++ b/fish/.config/fish/functions/fish_right_prompt.fish @@ -0,0 +1,6 @@ +function fish_right_prompt + if test $CMD_DURATION + printf %.3fs $(math $CMD_DURATION / 1000) + end +end +