dev: automated commit - 2025-09-29 12:07:29

This commit is contained in:
Mariano Z. 2025-09-29 12:07:29 -03:00
parent 0a04450061
commit f2cc7ea607
7 changed files with 127 additions and 61 deletions

View file

@ -732,6 +732,7 @@ yay() {
echo "Searching for '$2'..."
nix search nixpkgs "$2" 2>/dev/null || nix-env -qaP | grep -i "$2"
;;
# Install package to user environment
install|"-S")
[ -z "$2" ] && { echo "Usage: yay install <package>"; return 1; }
@ -752,6 +753,17 @@ yay() {
nix-env -q
;;
# nix-shell quick run
shell|"-p")
shift
if [ $# -eq 0 ]; then
echo "Usage: yay shell <pkg1> [pkg2 ...]"
return 1
fi
echo "Starting nix-shell with: $*"
nix-shell -p "$@"
;;
# Clean up
clean|"-Sc")
echo "Cleaning nix store..."
@ -770,9 +782,10 @@ Commands:
yay search <pkg> Search packages
yay install <pkg> Install package (user)
yay remove <pkg> Remove package
yay list List installed packages
yay clean Clean package cache
yay help Show this help
yay list List installed packages
yay shell <pkg...> Start nix-shell with packages
yay clean Clean package cache
yay help Show this help
Note: For system packages, edit ~/.config/nixos/configuration.nix
EOF