From 8378fcf05322fcf7e44b5916f5da3bbde34fcec0 Mon Sep 17 00:00:00 2001 From: Josh Skidmore Date: Wed, 19 Aug 2020 06:57:16 -0400 Subject: [PATCH] use %Y-%m-%d %I:%M:%S' format --- zsh-fzf-history-search.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh-fzf-history-search.zsh b/zsh-fzf-history-search.zsh index b5a16c4..e629498 100644 --- a/zsh-fzf-history-search.zsh +++ b/zsh-fzf-history-search.zsh @@ -1,5 +1,5 @@ fzf_history_seach() { - history -i 0 | grep -v 1969 | fzf +s +m -x --tac -e | awk '{print substr($0, index($0, $4))}' | tr -d "\n" + history -t '%Y-%m-%d %I:%M:%S' 0 | grep -v 1969 | fzf +s +m -x --tac -e | awk '{print substr($0, index($0, $4))}' | tr -d "\n" } autoload fzf_history_seach