dotfiles/distros/arch/pm.sh
2023-08-23 06:14:56 +02:00

22 lines
No EOL
319 B
Bash

#!/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 $@