From e12e88483cc0a2dbdc2b6ff6a3c45750cfc17d1e Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Sat, 20 Jun 2020 13:57:23 -0700 Subject: fix: added aux menu files --- bin/menu_path | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 bin/menu_path (limited to 'bin/menu_path') diff --git a/bin/menu_path b/bin/menu_path new file mode 100755 index 0000000..151a637 --- /dev/null +++ b/bin/menu_path @@ -0,0 +1,13 @@ +#!/bin/sh + +cachedir="${XDG_CACHE_HOME:-"$HOME/.cache"}" +cache="$cachedir/menu_run" + +[ ! -e "$cachedir" ] && mkdir -p "$cachedir" + +IFS=: +if filter -dqr -n "$cache" $PATH; then + filter -flx $PATH | sort -u | tee "$cache" +else + cat "$cache" +fi -- cgit v1.2.1