Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
af686fe6c0 | |||
ba07f6275d | |||
8e2bdd88d3 |
16
README.md
16
README.md
@@ -1,15 +1,23 @@
|
||||
# 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:
|
||||
- aur/yay
|
||||
- search
|
||||
- info
|
||||
- localinfo
|
||||
- provides
|
||||
- providefiles
|
||||
- installed
|
||||
- install
|
||||
- update
|
||||
- upgradable
|
||||
- upgrade
|
||||
- install
|
||||
- provides
|
||||
- remove
|
||||
- purge
|
||||
- clean
|
||||
- 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
|
||||
|
9
pman.sh
9
pman.sh
@@ -87,6 +87,13 @@ case "$command_args" in
|
||||
if [ "$command" = "pacman" ]; then
|
||||
su_needed=true
|
||||
fi
|
||||
execute_command "${@}"
|
||||
|
||||
su_needed=false
|
||||
command_args="-Qu"
|
||||
echo
|
||||
echo "$(execute_command "${@}" | wc -l) packages are available for update"
|
||||
exit 0
|
||||
;;
|
||||
"upgradable")
|
||||
command_args="-Qu"
|
||||
@@ -117,7 +124,7 @@ case "$command_args" in
|
||||
;;
|
||||
*)
|
||||
if [ "$more_arguments" = "true" ]; then
|
||||
echo "Invalid command: \"$command $command_args\""
|
||||
echo "Invalid command: \"$command_args\""
|
||||
echo
|
||||
echo "Usage: pman <command> [args...]"
|
||||
echo "Available commands:"
|
||||
|
Reference in New Issue
Block a user