Essential Homebrew Tools for Mac You Didn't Know You Needed
Written on
Introduction to Homebrew
Homebrew is a free and open-source package manager for macOS, allowing users to easily install software using simple Terminal commands. Although it should ideally be included with macOS, it requires manual installation. To get started, execute the following command in the Terminal:
Follow the instructions provided on-screen to finish the setup. Once installed, you can explore these nine Homebrew tools that I've found incredibly useful over the years.
The video titled "Hidden FREE Mac Apps!" provides a deeper look at these handy tools.
Wi-Fi Password Finder
The wifi-password tool helps you quickly retrieve the password for the current Wi-Fi network or any previously connected SSID. While macOS Ventura allows you to access Wi-Fi passwords via System Settings, it's a somewhat lengthy process. This tool simplifies it.
To install wifi-password, use:
brew install wifi-password
You can find the current Wi-Fi password with:
wifi-password
To copy the password to your clipboard, use:
wifi-password | pbcopy
For a specific SSID:
wifi-password <SSID>
To copy the password for a previously connected SSID, combine commands like this:
wifi-password <SSID> | pbcopy
Speed Test Utility
Instead of relying on third-party websites to check your internet speed—often laden with ads and data tracking—try speedtest-cli. This tool performs speed tests directly from the Terminal.
Install speedtest-cli with:
brew install speedtest-cli
To check your network speed, simply run:
speedtest-cli
Need help? Type:
speedtest-cli --help
You can also test network speed without Homebrew. Refer to the next section for details.
Terminal Commands You Should Know
You can easily check your network speed from the Terminal, enhancing efficiency in your daily tasks.
YouTube Video Downloader
If you're looking to download YouTube videos in high quality, youtube-dl is the tool for you. It offers extensive features and functionalities.
To install youtube-dl, run:
brew install youtube-dl
For full functionality, install ffmpeg:
brew install ffmpeg
To download the highest-resolution video, use:
youtube-dl -f bestvideo+bestaudio <url>
For assistance, type:
youtube-dl --help
Nostalgic Pipes Animation
Remember the pipes screensaver from older Windows machines? The pipes.sh tool recreates that nostalgic experience on your Mac.
To install:
brew install pipes.sh
Start the pipes animation with:
pipes.sh
To stop it, use Ctrl+C. For help, type:
pipes.sh --help
Text-Based Web Browsing
lynx is a text-only web browser that allows you to navigate the web in a minimalistic format. It's not only a fun tool but also loads pages faster due to the absence of media content.
To install lynx, run:
brew install lynx
To open a website, use:
lynx <website>
Quit with Ctrl+C and get help by pressing h while using the browser.
Mac App Store in Terminal
The mas command-line tool provides a way to interact with the Mac App Store directly from the Terminal. This allows you to view, install, and update apps without launching the App Store interface.
To install mas, type:
brew install mas
To list installed apps, use:
mas list
Search and install new apps with:
mas search <app_name>
mas install <app_id>
Password Generator
pwgen is a password generator that creates strong, customizable passwords quickly.
To install:
brew install pwgen
Generate an 8-character password with:
pwgen 8
For even stronger passwords, use:
pwgen -s 8
You can also include special characters:
pwgen -y 8
Media Player without GUI
mplayer is a command-line media player that supports various audio and video formats, all controlled via keyboard shortcuts.
To install:
brew install mplayer
Play media files by typing:
mplayer <path_to_file>
Asciinema for Terminal Recordings
If you want to share your Terminal sessions, asciinema allows you to record and upload them easily.
Install with:
brew install asciinema
Start recording by typing:
asciinema rec
Stop the recording with Ctrl+D or by typing exit.
Conclusion
These tools can significantly enhance your Mac experience, making various tasks simpler and more efficient. For more tips on utilizing your Mac's Terminal, explore additional resources and guides.