From 8ed700e106ae98c0fa089a0341c45691a424b6b5 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Wed, 28 Mar 2012 13:58:48 -0400 Subject: [PATCH] Move history-stat from utility into history --- modules/history/init.zsh | 6 +++++- modules/utility/init.zsh | 3 --- 2 files changed, 5 insertions(+), 4 deletions(-) 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'