From 735dfc1adb21647367c212767aefdec80b9ca218 Mon Sep 17 00:00:00 2001 From: SeWook Oh Date: Wed, 10 Apr 2024 01:03:13 +0100 Subject: [PATCH] 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 --------- Co-authored-by: Fazle Arefin --- pages/common/history.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/history.md b/pages/common/history.md index ad8e8f0db0..183971924b 100644 --- a/pages/common/history.md +++ b/pages/common/history.md @@ -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`