-
-
Save osteele/df8d8ea91e43940389c91a73dc9d66d3 to your computer and use it in GitHub Desktop.
An abbreviation for `brew cask`, that doesn't require remembering which of `search` and `install` is `brew` vs. `brew cask`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash -eu | |
# Like `brew cask`, except: | |
# 1. Shorter | |
# 2. Doesn't require that I remember which of `search` and `install` is `brew` vs. `brew cask` | |
if [[ $1 == search ]]; then | |
brew "$@" | |
else | |
brew cask "$@" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment