Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Search for cask, select & install
- ## 0.1 Inlife
- function caskdo {
- echo 'Searching...';
- OPTIONS=($(brew cask search $1 | sed 1,2d));
- if [ -z "$OPTIONS" ]; then
- echo "Not found anything like \"$1\""
- else
- echo 'Select number of cask you want to install: '
- select RESULT in $OPTIONS;
- do
- echo "Installing $RESULT";
- brew cask install $RESULT;
- echo "Done.";
- exit;
- done
- fi
- }
- # Example
- caskdo google
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement