vmacarios / devcontainer

Encapsulated development environment to reduce the boilerplate to start developing.
0 stars 0 forks source link

Include timestamp in history #26

Closed vmacarios closed 1 week ago

vmacarios commented 1 week ago

Add the following line to /etc/profile.d/devcontainer.sh or ~/.bashrc to display the timestamp before each command in the history output

export HISTTIMEFORMAT="%F %T "

vmacarios commented 1 week ago

As the user homedir is persisted as a volume, future changes on the bashrc would not overwrite ~/.bashrc Additionally, to avoid losing any user entry on the ~/.bashrc, the original content plus the history timestamp setting have been moved to /etc/bash.bashrc