this post was submitted on 15 Jul 2023
420 points (97.1% liked)

Programmer Humor

32361 readers
459 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 year ago

Real talk I’ve been using this I’ve mashed together:

update_brew() {
    bold=$(tput bold);
    normal=$(tput sgr0);
    brew --version &&
    echo "${bold} > brew update${normal}" &&
    brew update &&
    echo "${bold} > brew upgrade${normal}" &&
    brew upgrade &&
    echo "${bold} > brew autoremove${normal}" &&
    brew autoremove &&
    echo "${bold} > brew cleanup${normal}" &&
    brew cleanup &&
    echo "${bold} > brew doctor${normal}" &&
    brew doctor;
}