23 lines
512 B
Plaintext
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
|
|
}
|