- minor semantic changes (semicolons at the end of the line)
- added convenient updateSystem command
This commit is contained in:
16
home_external/.bash_aliases_branched
Normal file
16
home_external/.bash_aliases_branched
Normal file
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
|
||||
updatePackages() {
|
||||
noconfirm=
|
||||
if [[ $1 == "-y" ]]; then
|
||||
noconfirm="--no-confirm";
|
||||
fi
|
||||
executeAndNotify "doUpdatePackages $noconfirm" "packages updated" "package update failed";
|
||||
}
|
||||
|
||||
|
||||
doUpdatePackages() {
|
||||
pamac update $1;
|
||||
pamac remove --orphans --cascade $1;
|
||||
}
|
Reference in New Issue
Block a user