2 Commits
1.1.1 ... 1.1.2

Author SHA1 Message Date
af686fe6c0 added summary of upgradable packages in "update" command 2024-09-30 12:01:55 +02:00
ba07f6275d updated README 2024-09-16 14:22:24 +02:00
2 changed files with 19 additions and 4 deletions

View File

@@ -1,15 +1,23 @@
# pman.sh # pman.sh
A `pacman` helper script, because you forget the stupid flags A `pacman` helper script, because you forget all the stupid flags
## Usage / Features: ## Usage / Features:
- aur/yay
- search - search
- info
- localinfo
- provides
- providefiles
- installed
- install
- update - update
- upgradable - upgradable
- upgrade - upgrade
- install - remove
- provides - purge
- clean
- config - config
`config` is the only flag that is not appended to `pacman`, instead it resolves to `nano /etc/pacman.conf`. `config` is the only flag that is not appended to `pacman` (or `yay`), instead it resolves to `nano /etc/pacman.conf`.
`sudo` gets prepended automatically if the command requires it and if installed - no, there is no check if your user is in the `sudo` group, if you download this script you should already be, or know you can only use part of this utility `sudo` gets prepended automatically if the command requires it and if installed - no, there is no check if your user is in the `sudo` group, if you download this script you should already be, or know you can only use part of this utility

View File

@@ -87,6 +87,13 @@ case "$command_args" in
if [ "$command" = "pacman" ]; then if [ "$command" = "pacman" ]; then
su_needed=true su_needed=true
fi fi
execute_command "${@}"
su_needed=false
command_args="-Qu"
echo
echo "$(execute_command "${@}" | wc -l) packages are available for update"
exit 0
;; ;;
"upgradable") "upgradable")
command_args="-Qu" command_args="-Qu"