Skip to content

Instantly share code, notes, and snippets.

@osteele
Created September 10, 2019 04:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save osteele/df8d8ea91e43940389c91a73dc9d66d3 to your computer and use it in GitHub Desktop.
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`
#!/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