2018-08-29 18:53:24 +00:00
|
|
|
alias brewp='brew pin'
|
|
|
|
alias brewsp='brew list --pinned'
|
2015-05-31 17:34:01 +00:00
|
|
|
alias bubo='brew update && brew outdated'
|
|
|
|
alias bubc='brew upgrade && brew cleanup'
|
|
|
|
alias bubu='bubo && bubc'
|
2020-09-28 20:24:31 +00:00
|
|
|
alias buf='brew upgrade --formula'
|
2020-09-14 18:32:23 +00:00
|
|
|
alias bcubo='brew update && brew outdated --cask'
|
2020-12-30 18:56:56 +00:00
|
|
|
alias bcubc='brew upgrade --cask && brew cleanup'
|
2021-12-18 00:15:39 +00:00
|
|
|
|
|
|
|
function brews() {
|
|
|
|
local formulae="$(brew leaves | xargs brew deps --installed --for-each)"
|
|
|
|
local casks="$(brew list --cask)"
|
|
|
|
|
|
|
|
local blue="$(tput setaf 4)"
|
|
|
|
local bold="$(tput bold)"
|
|
|
|
local off="$(tput sgr0)"
|
|
|
|
|
|
|
|
echo "${blue}==>${off} ${bold}Formulae${off}"
|
|
|
|
echo "${formulae}" | sed "s/^\(.*\):\(.*\)$/\1${blue}\2${off}/"
|
|
|
|
echo "\n${blue}==>${off} ${bold}Casks${off}\n${casks}"
|
|
|
|
}
|