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'sbrew
commands while saving thestdout
to a log file in your~/Logs/brew.log
- Not to be confused with
brew log
which 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 assigningbrewlog
to achive my desired result of logging brew output :) [IMHObrew history
might have been a better name forbrew log
]
- Not to be confused with
lrg
= output ofripgrep
piped 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" | bash
These 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
SHELL
to the main command being invoked.