[READ-ONLY] Mirror of https://github.com/mrgnw/dotfiles. My shell customizations - aliases, functions, and themes.
dotfiles shell zinit zsh
0

Configure Feed

Select the types of activity you want to include in your feed.

dotfiles / brew.zsh
513 B 29 lines
1#!/bin/zsh 2alias cask='brew cask' 3alias b='brew' 4 5# list installed homebrews name & desc 6brews() { 7 brew info --json=v1 --installed | jq -r '. [] | "\(.name)||\(.desc)"' | column -t -s '||'; 8} 9 10b+(){ 11 if [[ $# -gt 0 ]]; then 12 brew install "$@" 13 else 14 echo "brew update; brew upgrade" 15 brew update; brew upgrade; brew cleanup; 16 fi 17} 18 19b-(){ 20 if [[ $# -gt 0 ]]; then 21 brew uninstall "$@" 22 else 23 echo "brew cleanup -s" 24 brew cleanup -s 25 fi 26} 27 28bs(){ brew search $@ } 29b^(){ brew outdated $@ | column -t -s ' '; }