The history file is read by sort and updhist updates the counts in the history file. --- dmenu_run | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dmenu_run b/dmenu_run index 834ede5..4858b0d 100755 --- a/dmenu_run +++ b/dmenu_run @@ -1,2 +1,5 @@ #!/bin/sh -dmenu_path | dmenu "$@" | ${SHELL:-"/bin/sh"} & + +historyfile=~/.cache/dmenu/dmenuhistory + +dmenu_path $historyfile | dmenu "$@" | updhist $historyfile | ${SHELL:-"/bin/sh"} & -- 2.6.2