[hackers] [dmenu][RFC][PATCH 2/4] Pass a file path to dmenu_path and run updhist

From: Silvan Jegen <s.jegen_AT_gmail.com>
Date: Fri, 27 Nov 2015 19:38:30 +0100

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
_AT_@ -1,2 +1,5 @@
 #!/bin/sh
-dmenu_path | dmenu "$_AT_" | ${SHELL:-"/bin/sh"} &
+
+historyfile=~/.cache/dmenu/dmenuhistory
+
+dmenu_path $historyfile | dmenu "$_AT_" | updhist $historyfile | ${SHELL:-"/bin/sh"} &
-- 
2.6.2
Received on Fri Nov 27 2015 - 19:38:30 CET

This archive was generated by hypermail 2.3.0 : Fri Nov 27 2015 - 19:48:17 CET