1
0
Fork 0
mirror of synced 2024-11-22 15:25:34 -05:00

[history] Use fc -l instead of history

`history` is equivalent to `fc -l`, and `fc` is the actual Zsh builtin.

Add the `-n` flag to suppress event numbers when listing.
This commit is contained in:
Eric Nielsen 2018-12-09 20:08:13 -05:00
parent af11392473
commit 81a52a5d7d

View file

@ -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"