diff --git a/bash_aliases b/bash_aliases
index 6a008881324b80847f43157db9d32a215701c142..9529f08a088eaad96b71b0ff9d2eda4be261edf3 100644
--- a/bash_aliases
+++ b/bash_aliases
@@ -67,7 +67,7 @@ function count {
 # Show a histogram output of commands in history
 alias _hist='echo "hist(): Show a histogram output of commands in history"'
 function hist {
-    history | awk '{print $2}' | sort -n | uniq -c | sort -n | tail
+    history | awk '{if ($2 == "sudo") {print $2,$3} else {print $2}}' | sort -n | uniq -c | sort -nr | head -n20
 }
 
 # Make a directory, then cd into it