addet functionality

This commit is contained in:
pika 2024-05-23 14:32:02 +02:00
parent 4d3f6d862a
commit 502756fdea

View file

@ -13,14 +13,14 @@ if command -v nala >/dev/null 2>&1; then
install="$pkg update && $pkg install"
remove="$pkg prune"
update="$pkg update && $pkg upgrade"
ref="$pkg update"
ref="$pkg update --assume-yes"
search="$pkg search"
elif command -v apt-get >/dev/null 2>&1; then
pkg="$sudo apt-get"
install="$pkg update && $pkg install"
remove="$pkg remove"
update="$pkg update && $pkg upgrade"
ref="$pkg update"
ref="$pkg update --assume-yes"
search="$pkg search"
fi
@ -40,21 +40,21 @@ if command -v paru >/dev/null 2>&1; then
install="$pkg -S"
remove="$pkg -R"
update="$pkg -Syu"
ref="$pkg"
ref="$pkg -Sy --noconfirm"
search="$pkg -Ss"
elif command -v yay >/dev/null 2>&1; then
pkg="yay"
install="$pkg -S"
remove="$pkg -R"
update="$pkg -Syu"
ref="$pkg -Sy"
ref="$pkg -Sy --noconfirm"
search="$pkg -Ss"
elif command -v pacman >/dev/null 2>&1; then
pkg="$sudo pacman"
install="$pkg -S"
remove="$pkg -R"
update="$pkg -Syu"
ref="$pkg -Sy"
ref="$pkg -Sy --needet --noconfirm"
search="$pkg -Ss"
fi