After gemini-propoesed fixes

This commit is contained in:
Sam Hardeman 2026-03-13 01:38:34 +01:00
parent 2e31283b61
commit 83324dd0f7
11 changed files with 228 additions and 307 deletions

11
what
View file

@ -26,7 +26,10 @@
LD_INTERNAL=1
. $(dirname $(realpath $0))/daisy.source
pwd=/
all_bins=$(cd / && echo $PATH | sed 's/[:]/ /g' | xargs ls -A | grep -v ":" | sort | uniq)
output=$(printf '%s\n' "-n" $all_bins | grep -i "$1")
echo "$output"
all_bins=$(compgen -c | sort -u)
if [[ -n "$1" ]]; then
echo "$all_bins" | grep -i "$1"
else
echo "$all_bins"
fi