repo: dmenu action: commit revision: path_from: revision_from: 99fe3ec6ddadca38398ea0f976ed8f1e6741d12c: path_to: revision_to:
commit 99fe3ec6ddadca38398ea0f976ed8f1e6741d12c Author: epochDate: Sun Oct 16 16:15:42 2022 -0500 store dmenu_run history in a cache file diff --git a/dmenu_run b/dmenu_run
--- 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-----