←back to thread

457 points benoitg | 2 comments | | HN request time: 0.414s | source
Show context
Henchman21 ◴[] No.44366876[source]
Genuine question for all the people putting timestamps in your prompts: do you never look at your command history and see that they’re all timestamped?
replies(3): >>44367703 #>>44367962 #>>44368078 #
1. hiAndrewQuinn ◴[] No.44367962[source]
Per the Bash `history` manpage:

    int history_write_timestamps
       If non-zero, timestamps are written to the history file, so they can be preserved between sessions.  The default value is 0, [...]
So this isn't true by default on many machines unless it is explicitly turned on.

I could find no command line history for Bash when I poked around. I use the fish shell, however, which does embed timestamp data by default - but I rarely think to look there when the detail might be pertinent. C'est la vie.

replies(1): >>44368091 #
2. Henchman21 ◴[] No.44368091[source]
Aha now that makes some sense. I am a bash user— and I’ll admit my settings are OLD. So old I’ve forgotten the defaults entirely. Thanks for the reminder :)