diff --git a/lib/history.bash b/lib/history.bash index f278e598..92db21f9 100644 --- a/lib/history.bash +++ b/lib/history.bash @@ -15,11 +15,6 @@ export HISTSIZE=5000 export AUTOFEATURE=true autotest -# enter a few characters and press UpArrow/DownArrow -# to search backwards/forwards through the history -bind '"":history-search-backward' -bind '"":history-search-forward' - function rh { history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head } diff --git a/plugins/available/history.plugin.bash b/plugins/available/history.plugin.bash new file mode 100644 index 00000000..512bbf92 --- /dev/null +++ b/plugins/available/history.plugin.bash @@ -0,0 +1,4 @@ +# enter a few characters and press UpArrow/DownArrow +# to search backwards/forwards through the history +bind '"":history-search-backward' +bind '"":history-search-forward'