From 8ece84ebc7be995a6b765f290a7920ddef66e358 Mon Sep 17 00:00:00 2001 From: Steph Enders Date: Mon, 24 Jun 2024 12:55:19 -0400 Subject: update patch: dmenu_omit - refresh cache on dmenu_omit file change Regardless of how the dmenu_omit file is edited, if newer than the cache regenerate the cache! --- dmenu_path | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dmenu_path b/dmenu_path index 4c2a5b4..7f356f5 100755 --- a/dmenu_path +++ b/dmenu_path @@ -9,7 +9,8 @@ config="$configdir/dmenu_omitlist" [ ! -e "$configdir" ] && mkdir -p "$configdir" IFS=: -if stest -dqr -n "$cache" $PATH; then + +if stest -dqr -n "$cache" $PATH || [ "$config" -nt "$cache" ]; then stest -flx $PATH | sort -u | grep -wvF -f $config | tee "$cache" else cat "$cache" -- cgit v1.2.3-54-g00ecf