Unable to read the timestamp of Zsh history
问题 Problem: to understand the following timestamp 1241036430 at ~/.history : 1241036336:0;vim ~/.zshrc : 1241036379:0;vim ~/bin/HideTopBar : 1241036421:0;ls : 1241036430:0;cat ~/.history when I have setopt EXTENDED_HISTORY HISTFILE=~/.history in .zshrc. How can you read the timestamp? 回答1: This simple util, called localtime is gold for reading files with timestamps: #!/usr/bin/perl # http://perl.plover.com/classes/mybin/samples/source/localtime if ($ARGV[0] eq '-f') { *show_localtime = \&show