1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 18:38:00 +00:00

[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.
This commit is contained in:
Colin Hebert 2012-09-06 13:16:58 +02:00 committed by Sorin Ionescu
parent 209846011f
commit 0f7e454977

View File

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