From 0f7e454977a19e451dbac472829a7b9a9e47beef Mon Sep 17 00:00:00 2001 From: Colin Hebert Date: Thu, 6 Sep 2012 13:16:58 +0200 Subject: [PATCH] [Fix #268] Get entire history for history-stat The 'history' command is the same as 'fc -l', using a '.' as the first parameter will get the history from the first command starting with a '.'. Instead a '0' should be used, meaning that the history is taken from the very first entry in the history. --- modules/history/init.zsh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/history/init.zsh b/modules/history/init.zsh index e23fb8b7..31db4c5b 100644 --- a/modules/history/init.zsh +++ b/modules/history/init.zsh @@ -36,5 +36,4 @@ setopt HIST_BEEP # Beep when accessing non-existent history. # # Lists the ten most used commands. -alias history-stat="history . | awk '{print \$2}' | sort | uniq -c | sort -n -r | head" - +alias history-stat="history 0 | awk '{print \$2}' | sort | uniq -c | sort -n -r | head"