David Moreau Simard 1afbd20db2
Setup bash history to contain standard timestamps (RFC3339)
The bash history is an unintended form of documentation and also a way
to see what happened but by default it doesn't tell you when.

Before this change:
  $ history
      1  uname -a
      2  sudo reboot

After this change:
  $ history
      1  2017-12-20T23:50:28+0000 uname -a
      2  2017-12-20T23:50:35+0000 sudo reboot

Note that any entries in the bash history before this change will be
defaulted to when the change takes place.

Change-Id: I4443f00ab050891a16e545315ee88ae24893ac5d
2018-01-02 11:19:31 -05:00

1 line
38 B
Bash

export HISTTIMEFORMAT="%Y-%m-%dT%T%z "