Browse Source

[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.
master
Colin Hebert 12 years ago committed by Sorin Ionescu
parent
commit
0f7e454977
  1. 3
      modules/history/init.zsh

3
modules/history/init.zsh

@ -36,5 +36,4 @@ setopt HIST_BEEP # Beep when accessing non-existent history. @@ -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"

Loading…
Cancel
Save