aboutsummaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2021-02-06 21:59:03 -0500
committertdro <tdro@users.noreply.github.com>2021-02-06 21:59:03 -0500
commiteaee6e046081b699798edb39f2b1bd22abc91b0c (patch)
treee08e52da5fdda9f017b9d384e9f4302f9c952e01 /.local
parent23f5e6955bf1df93077f6e69baa448393cd006d1 (diff)
downloaddotfiles-eaee6e046081b699798edb39f2b1bd22abc91b0c.tar.gz
dotfiles-eaee6e046081b699798edb39f2b1bd22abc91b0c.tar.bz2
dotfiles-eaee6e046081b699798edb39f2b1bd22abc91b0c.zip
.local/bin/dmenu_run_history: Create cache if missing
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/dmenu_run_history2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/dmenu_run_history b/.local/bin/dmenu_run_history
index 0200924..c6a7372 100755
--- a/.local/bin/dmenu_run_history
+++ b/.local/bin/dmenu_run_history
@@ -14,7 +14,7 @@ else
historyfile=$HOME/.dmenu_history
fi
-if [ "$1" = "update" ]; then
+if [ "$1" = "update" ] || [ ! -f "$cache" ]; then
IFS=:
stest -dqr -n "$cache" $PATH && stest -flx $PATH | sort -u > "$cache";
unset IFS;