dotfiles/distros/arch/pm.sh

22 lines
319 B
Bash
Raw Normal View History

2023-08-23 06:14:56 +02:00
#!/bin/sh
cmd="pacman --noconfirm"
while getopts "icru" opt; do
case $opt in
i)
cmd="$cmd -S"
;;
u)
cmd="$cmd -Syyu"
;;
r)
cmd="$cmd -R"
;;
c)
cmd="$cmd -Q"
;;
esac
done
shift $((OPTIND-1))
$cmd $@