3

Currently I use this theme for fish, installed using fisher.

This is how it shows up now:

Screenshot

I would like the time string (e.g. 19:19) to be shown before the /m or after react or after the part with the green background.

I have searched a little on this website but did not find anything similar.

I use Ubuntu 20.04.

Thank you.

1 Answer 1

3

You'll need to edit your fish_prompt function, perhaps using funced fish_prompt.

It will need to include something like:

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

(The echo -n () part is required to remove the new line that the date command outputs.)

If you want it to appear at the very beginning, insert that as the first line of the function.

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.