repo: dmenu
action: commit
revision: 
path_from: 
revision_from: 99fe3ec6ddadca38398ea0f976ed8f1e6741d12c:
path_to: 
revision_to: 
git.thebackupbox.net
dmenu
git clone git://git.thebackupbox.net/dmenu
commit 99fe3ec6ddadca38398ea0f976ed8f1e6741d12c
Author: epoch 
Date:   Sun Oct 16 16:15:42 2022 -0500

    store dmenu_run history in a cache file

diff --git a/dmenu_run b/dmenu_run
index 834ede54fc6f465e45ab9a0930f49b6566201fd9..
index ..614a16379e4f0362b0a994208190fa11e83c554f 100755
--- a/dmenu_run
+++ b/dmenu_run
@@ -1,2 +1,2 @@
-#!/bin/sh
-dmenu_path | dmenu "$@" | ${SHELL:-"/bin/sh"} &
+#!/bin/bash
+cat <(tac < ~/.cache/run_history | awk '!a[$0]++') <(dmenu_path) | choose "$@" | tee -a ~/.cache/run_history | ${SHELL:-"/bin/sh"} &

-----END OF PAGE-----