From 64d3beaf80d3288ec07d3ab6d14debf785f491c6 Mon Sep 17 00:00:00 2001 From: Jessie Hildebrandt Date: Tue, 29 Oct 2019 17:55:55 -0400 Subject: [PATCH] Add optional right prompt with timestamp info --- config.fish | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/config.fish b/config.fish index aeade71..927f2c4 100644 --- a/config.fish +++ b/config.fish @@ -164,3 +164,28 @@ function fish_prompt --description 'Write out the prompt' printf "\n%s" $prompt_char end + +######################### +# Right Prompt Function # +######################### + +function fish_right_prompt + + ############################# + # Enable/disable right prompt + + if not set -q __fish_prompt_show_timestamps + return + end + + ################# + # Local variables + + set -l darkgray (set_color 3b3b3b brblack) + + ########### + # Timestamp + + printf "%s" $darkgray (date +"[%H:%M:%S]") + +end