3 ms·
For those using ZSH and prefer history with timestamps (setopt EXTENDED_HISTORY), the awk command should print the 4th arg instead history | sed -e 's/^ *[
by tokanizar 13y ago
For those using ZSH and prefer history with timestamps (setopt EXTENDED_HISTORY), the awk command should print the 4th arg instead
history | sed -e 's/^ *[0-9]* //' -e 's/| */\n/' | awk '{print $4}' | sort | uniq -c | sort -rn | head -n 100