shit's getting crazy

This commit is contained in:
brad 2023-04-01 14:19:02 -05:00
parent f02c1cfbc7
commit 02867aa246

View File

@ -1,14 +1,50 @@
# Detect distribution
if [ -f /etc/os-release ]; then
. /etc/os-release
fi
# Application management # Application management
# Install something bypassing the prompts case "$ID" in
alias inst='sudo apt-get install -y' ubuntu|debian)
# Do a basic update. Ubuntu only # Install something bypassing the prompts
alias update='sudo apt-get update -y && sudo apt-get upgrade -y' alias inst='sudo apt-get install -y'
# Upgrade the fuck out of just fucking everything # Do a basic update
alias upgrade_all='sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo apt-get autoremove -y && sudo apt-get autoclean -y && sudo apt-get --with-new-pkgs upgrade -y' alias update='sudo apt-get update -y && sudo apt-get upgrade -y'
# Search packages. Ubuntu Only # Upgrade everything
alias pacs='apt-cache search' alias upgrade_all='sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo apt-get autoremove -y && sudo apt-get autoclean -y && sudo apt-get --with-new-pkgs upgrade -y'
# Uninstall. Ubuntu only. # Search packages
alias burn='sudo apt-get autoremove' alias pacs='apt-cache search'
# Uninstall
alias burn='sudo apt-get autoremove'
;;
arch|archlinux)
# Install something bypassing the prompts
alias inst='sudo pacman -S --noconfirm'
# Do a basic update
alias update='sudo pacman -Syu --noconfirm'
# Upgrade everything
alias upgrade_all='sudo pacman -Syu --noconfirm && sudo pacman -Rns $(pacman -Qdtq) --noconfirm && sudo paccache -r'
# Search packages
alias pacs='pacman -Ss'
# Uninstall
alias burn='sudo pacman -Rns --noconfirm'
;;
alpine)
# Install something bypassing the prompts
alias inst='sudo apk add'
# Do a basic update
alias update='sudo apk update && sudo apk upgrade'
# Upgrade everything
alias upgrade_all='sudo apk update && sudo apk upgrade && sudo apk cache clean'
# Search packages
alias pacs='apk search'
# Uninstall
alias burn='sudo apk del'
;;
*)
# Add any other distribution-specific aliases here
;;
esac
# General # General
# Get $HOME quick # Get $HOME quick