The gists here contain bash scripts that install commands in /usr/local/bin, you may need sudo depending on your permissions.
The installed command usually chains together a series of commands to achieve desired results and requires only a few keysctrokes to invoke instead of typing a long string of parameters and pipes everytime.
- brewlog
brewlog= run homebrew'sbrewcommands while saving thestdoutto a log file in your~/Logs/brew.log- Not to be confused with
brew logwhich shows the commit history (similar togit log). - I need to find a new name, but for now as I personally don’t use
brew log, I had no “merge conflicts” in my brain while assigningbrewlogto achive my desired result of logging brew output :) [IMHObrew historymight have been a better name forbrew log]
- Not to be confused with
lrg= output ofripgreppiped toless
How to installing these compound commands:
# Install brewlog
curl -sSL 'https://raw.githubusercontent.com/robocopAlpha/brewlog/master/install.sh' | bash
# Install lrg
curl -sSL "https://gist.githubusercontent.com/dchakro/3e9792b6e47c3648e725fb518a2dbf68/raw/lrg.sh" | bashThese commands defined here are fundamentally different than aliases as:
-
They often combine some operations
-
They take in the '$@' parameter and which is used to pass along all the arguments that are used in the
SHELLto the main command being invoked.