aboutsummaryrefslogtreecommitdiff
path: root/swenu-path
diff options
context:
space:
mode:
authorRiley Beckett <rbeckettvt@gmail.com>2026-04-01 17:17:52 -0400
committerRiley Beckett <rbeckettvt@gmail.com>2026-04-01 17:18:18 -0400
commit820afc0d5af5d1536ecb7faaac86d01e788dacdf (patch)
tree8ba0e2f46956ca4e9408f7ecf1750fcd21636e6d /swenu-path
parentc21790c9d778036c13bd599e950963b8b1ab4d08 (diff)
add cache override ability
Diffstat (limited to 'swenu-path')
-rwxr-xr-xswenu-path4
1 files changed, 4 insertions, 0 deletions
diff --git a/swenu-path b/swenu-path
index fb58b5b..7eaee33 100755
--- a/swenu-path
+++ b/swenu-path
@@ -1,5 +1,9 @@
#!/bin/sh
+if [ "$1" ]; then
+ swenu-exes | sort -u | tee $cache
+fi
+
cachedir="${XDG_CACHE_HOME:-"$HOME/.cache"}"
cache="$cachedir/swenu-run"