Skip to content

Instantly share code, notes, and snippets.

@mrocha98
Last active January 8, 2021 17:03
Show Gist options
  • Save mrocha98/985c1370caac74332ee010a27e9a6352 to your computer and use it in GitHub Desktop.
Save mrocha98/985c1370caac74332ee010a27e9a6352 to your computer and use it in GitHub Desktop.
Small script to update apt stuff in a pretty and informative way

Pretty Apt Update for ZSH

Update your apt stuff in a pretty and informative way

Instructions

Put this code in your .zsh file:

update_stuff() {
  echo "=============================="
  echo "🔧 starting update routine...\n"
  
  echo "\n📥 APT UPDATE\n"
  sudo apt update -y
  
  echo "\n📈 APT UPGRADE\n"
  sudo apt upgrade -y
  
  echo "\n🗑️  APT AUTOREMOVE\n"
  sudo apt autoremove -y
  
  echo "\n🧹 APT AUTOCLEAN\n"
  sudo apt autoclean -y
  
  echo "\n⚙️  FLATPAK UPDATE\n"
  flatpak update -y
  
  echo "\n🚀 finishing update routine...\n"
  echo "=============================="
}
alias up="update_stuff"

Reload the environment:

source ~/.zsh

Test the command:

up # or update_stuff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment