Adding time to bash history

echo 'export HISTTIMEFORMAT="%F %T "' >> ~/.bashrc Done! But apply only on new history lines Good news if you use zsh: just type history -i

Jan 20, 2025 - 22:49
 0
Adding time to bash history

echo 'export HISTTIMEFORMAT="%F %T "' >> ~/.bashrc

Done! But apply only on new history lines

Good news if you use zsh: just type history -i

What's Your Reaction?

like

dislike

love

funny

angry

sad

wow