added search

This commit is contained in:
K9BFF committed 2025-11-03 20:25:06 -06:00
1 parent d99c96c41e
commit e650e2b7bc
2 files changed
+8 -1

No files matched your search

+2 -1
View File
@@ -4,7 +4,7 @@ a nixos operations frontent for lazy people
### installation:
1. prerequesites
the only prerequesite is `nom`. please ensure you have it installed before using `sysop`!
the only prerequesites are `nom` and `nix-search-cli`. please ensure you have them installed before using `sysop`!
2. initial setup
@@ -28,3 +28,4 @@ now you can give it a shot by running `sysop -h`
|-d | garbage collection |
|-p | nix-shell installation |
|-h | help |
|-s | search |
+6
View File
@@ -41,6 +41,11 @@ if [[ $1 == "-p" ]]; then
nix-shell -p $1 |& nom
fi
# search
if [[ $1 == "-s" ]]; then
nix-search $1
fi
# help
if [[ $1 == "-h" ]]; then
echo "sysop: system operations"
@@ -50,6 +55,7 @@ if [[ $1 == "-h" ]]; then
echo "-d Garbage Collection"
echo "-h Display this help"
echo "-p nix-shell install (temporary)"
echo "-s Search"
fi