From 8ac882b3816ba904b985d8e06a1aacf434515d06 Mon Sep 17 00:00:00 2001 From: Alison Watson Date: Mon, 29 Jul 2019 06:36:13 -0400 Subject: [PATCH] fish: add time to prompt --- scripts/fish/prompt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/fish/prompt b/scripts/fish/prompt index e5423ed..0177ef2 100644 --- a/scripts/fish/prompt +++ b/scripts/fish/prompt @@ -1,11 +1,15 @@ # vim: syntax=fish: function fish_prompt - echo (set_color c792ea)"$hostname% "(set_color normal) + echo -n (set_color 70a9ff)(date +%H:%M:%S) + echo -n (set_color normal)@ + echo -n (set_color c792ea)$hostname + echo (set_color normal)"% " end function fish_right_prompt - echo (set_color c3e88d)(pwd)(set_color normal) + echo -n (set_color c3e88d)(pwd) + echo (set_color normal) end function fish_greeting