made updateall more robust
This commit is contained in:
@@ -42,9 +42,14 @@ function updateall
|
||||
sh -c "$(curl -sS https://raw.githubusercontent.com/Vendicated/VencordInstaller/main/install.sh)"
|
||||
end
|
||||
|
||||
flatpak update
|
||||
paru -Sua --sudoloop
|
||||
|
||||
if test -e /usr/bin/flatpak
|
||||
flatpak update
|
||||
end
|
||||
if test -e /usr/bin/paru
|
||||
paru -Sua --sudoloop
|
||||
elif test -e /usr/bin/yay
|
||||
yay -Sua --sudoloop
|
||||
end
|
||||
# Get new Discord version (if installed)
|
||||
if pacman -Q linux-zen >/dev/null 2>&1
|
||||
set kernel_version_after (pacman -Q linux-zen)
|
||||
@@ -65,12 +70,14 @@ function updateall
|
||||
end
|
||||
end
|
||||
|
||||
alias big='expac -H M "%m\t%n" | sort -h | nl' # Sort installed packages according to size in MB (expac must be installed)
|
||||
alias fixpacman='sudo rm /var/lib/pacman/db.lck'
|
||||
alias gitpkg='pacman -Q | grep -i "\-git" | wc -l' # List amount of -git packages
|
||||
|
||||
alias rip 'expac --timefmt="%Y-%m-%d %T" "%l\t%n %v" | sort | tail -200 | nl'
|
||||
|
||||
if test -e /usr/bin/expac
|
||||
alias rip 'expac --timefmt="%Y-%m-%d %T" "%l\t%n %v" | sort | tail -200 | nl'
|
||||
alias big='expac -H M "%m\t%n" | sort -h | nl' # Sort installed packages according to size in MB (expac must be installed)
|
||||
end
|
||||
function cleanup
|
||||
while pacman -Qdtq
|
||||
sudo pacman -R (pacman -Qdtq)
|
||||
|
||||
Reference in New Issue
Block a user