diff --git a/modules/history/init.zsh b/modules/history/init.zsh index 965c440..80e6a40 100644 --- a/modules/history/init.zsh +++ b/modules/history/init.zsh @@ -37,4 +37,4 @@ setopt HIST_VERIFY # Lists the ten most used commands. -alias history-stat="history 0 | awk '{print \$2}' | sort | uniq -c | sort -n -r | head" +alias history-stat="fc -ln 0 | awk '{print \$1}' | sort | uniq -c | sort -nr | head"