1

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.

2

In ~/.config/fish/functions there is a file named fish_prompt.fish. Replace the line

    echo -n (prompt_pwd)

with

    echo -n (date +%H:%M) (prompt_pwd)

Result:

Result

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.