history: add command to display timestamp (#12625)

* history: Add command to display timestamp

Add command to display timestamp when printing history in Zsh

* Update pages/common/history.md

Co-authored-by: Fazle Arefin <fazlearefin@users.noreply.github.com>

---------

Co-authored-by: Fazle Arefin <fazlearefin@users.noreply.github.com>
This commit is contained in:
SeWook Oh
2024-04-10 01:03:13 +01:00
committed by GitHub
parent 198d776ba1
commit 735dfc1adb

View File

@@ -11,6 +11,10 @@
`history {{20}}`
- Display history with timestamps in different formats (only available in Zsh):
`history -{{d|f|i|E}}`
- Clear the commands history list (only for current Bash shell):
`history -c`