Pointless Scripts Are Sometimes Fun

# Checks for archlinux updates
# ~/.config/fish/functions/archup.fish
function archup -d "Run pacman updates"
    # Check for updates first, using checkupdates
    set -l cs (checkupdates)
    # If there are updates (any updates) run pacman
    if test (count $cs) -gt 0
       echo "Updates available, running pacman"
       sudo pacman -Syu
    else
       # Otherwise, print no updates available
       echo "No updates available"
    end
end

Gist

All it does is use the Archlinux checkupdates script to see if there are any updates and run pacman if there are.

Yeah. I should really go back and clean up the house some moreā€¦