diff --git a/modules/history/init.zsh b/modules/history/init.zsh index 5b5b9b36..d91fe385 100644 --- a/modules/history/init.zsh +++ b/modules/history/init.zsh @@ -1,5 +1,5 @@ # -# Sets history options. +# Sets history options and defines history aliases. # # Authors: # Robby Russell @@ -24,3 +24,7 @@ setopt HIST_REDUCE_BLANKS # Remove superfluous blanks before recording en setopt HIST_VERIFY # Don't execute immediately upon history expansion. setopt HIST_BEEP # Beep when accessing nonexistent history. +# Aliases +# Lists the ten most used commands. +alias history-stat="history . | awk '{print \$2}' | sort | uniq -c | sort -n -r | head" + diff --git a/modules/utility/init.zsh b/modules/utility/init.zsh index bf0cde60..29c60947 100644 --- a/modules/utility/init.zsh +++ b/modules/utility/init.zsh @@ -7,9 +7,6 @@ # Sorin Ionescu # -# Lists the ten most used commands. -alias history-stat="history . | awk '{print \$2}' | sort | uniq -c | sort -n -r | head" - # Serves a directory via HTTP. alias http-serve='python -m SimpleHTTPServer'