diff --git a/clean_files.txt b/clean_files.txt index 9088a1fb..bd6907ba 100644 --- a/clean_files.txt +++ b/clean_files.txt @@ -27,6 +27,7 @@ lint_clean_files.sh # libs # lib/appearance.bash +lib/history.bash # themes # diff --git a/lib/history.bash b/lib/history.bash index a1a7cb04..cfcede06 100644 --- a/lib/history.bash +++ b/lib/history.bash @@ -7,6 +7,6 @@ export HISTCONTROL=${HISTCONTROL:-ignorespace:erasedups} # erase duplicates; alt export HISTSIZE=${HISTSIZE:-5000} # resize history size export AUTOFEATURE=${AUTOFEATURE:-true autotest} # Cucumber / Autotest integration -function rh { - history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head +rh() { + history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head }