Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I'd like to see the current time in my fish prompt so that I can always see for example when I started the last command. I don't want to install extensions.
In ~/.config/fish/functions there is a file named fish_prompt.fish. Replace the line
echo -n (prompt_pwd)
echo -n (date +%H:%M) (prompt_pwd)
Required, but never shown