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>
pull/28/head
SeWook Oh 2024-04-10 01:03:13 +01:00 committed by GitHub
parent 198d776ba1
commit 735dfc1adb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

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`