mirror of
https://github.com/szymon-jozef/superior_dotfiles.git
synced 2026-09-07 12:10:38 +02:00
Update .config/fish/functions/update.fish
This commit is contained in:
@@ -1,4 +1,12 @@
|
|||||||
function update --description 'alias update=sudo pacman -Syu && flatpak update'
|
function update --description "update system"
|
||||||
yay || sudo pacman -Syu && sudo pacman -Rns (pacman -Qtdq) ; flatpak update --noninteractive $argv
|
if not yay
|
||||||
|
sudo pacman -Syu
|
||||||
|
end
|
||||||
|
|
||||||
|
set orphans (pacman -Qtdq)
|
||||||
|
if test (count $orphans) -gt 0
|
||||||
|
sudo pacman -Rns $orphans
|
||||||
|
end
|
||||||
|
|
||||||
|
flatpak update --noninteractive $argv
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user