fixed a lot of stuff

This commit is contained in:
Honney
2026-06-23 00:23:16 +02:00
parent 74f4b9b1be
commit 6591f6b020
24 changed files with 626 additions and 455 deletions
+9 -3
View File
@@ -3,8 +3,14 @@ function findstr
echo "Usage: findstr <search-string>"
return 1
end
if not command -q find
echo "findstr: 'find' is not installed."
return 1
end
if not command -q grep
echo "findstr: 'grep' is not installed."
return 1
end
set query $argv[1]
find . -type f -exec grep -Hn "$query" {} \;
find . -type f -exec grep -Hn "$argv[1]" {} \;
end