Archived
1
0
Fork 0
This repository has been archived on 2024-06-19. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/files/.zsh_platform_linux

23 lines
512 B
Plaintext

#
# ~/.zsh_platform for linux
#
alias open=xdg-open
update_platform() {
if [ -f /etc/arch-release ]; then
yay -Syu --sudoloop --noconfirm --nodiffmenu --noeditmenu --noupgrademenu
yay -Yc --noconfirm # Clean unneeeded dependencies
yay -Scc --noconfirm
elif [ -f /etc/fedora-release ]; then
sudo dnf upgrade --assumeyes
sudo dnf clean packages
fi
if hash flatpak 2> /dev/null; then
__update_log 'flatpak apps'
flatpak update -y
fi
}