Created
November 1, 2018 13:52
-
-
Save itsamoreh/234fde79ac2252d22805c9db51fc87a7 to your computer and use it in GitHub Desktop.
Sort bash / zsh command history and order by frequency
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
history | cut -c 8- | sort | uniq -c | sort -nr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice. I'm using it to decide to which commands to give the shortest aliases!