X-Git-Url: https://src.twobees.de/?a=blobdiff_plain;f=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Fbrew%2Fbrew.plugin.zsh;fp=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Fbrew%2Fbrew.plugin.zsh;h=0000000000000000000000000000000000000000;hb=1a8e170bbe5c6641a26ab1ce2e6ce6c5c1faa4cd;hp=41420b5b7047446eb4a360fcd03061ac662b7e49;hpb=475ba35502579302593f4735c853c49ef1845dcb;p=dotfiles.git diff --git a/stow/oh-my-zsh/.oh-my-zsh/plugins/brew/brew.plugin.zsh b/stow/oh-my-zsh/.oh-my-zsh/plugins/brew/brew.plugin.zsh deleted file mode 100644 index 41420b5..0000000 --- a/stow/oh-my-zsh/.oh-my-zsh/plugins/brew/brew.plugin.zsh +++ /dev/null @@ -1,48 +0,0 @@ -if (( ! $+commands[brew] )); then - if [[ -x /opt/homebrew/bin/brew ]]; then - BREW_LOCATION="/opt/homebrew/bin/brew" - elif [[ -x /usr/local/bin/brew ]]; then - BREW_LOCATION="/usr/local/bin/brew" - elif [[ -x /home/linuxbrew/.linuxbrew/bin/brew ]]; then - BREW_LOCATION="/home/linuxbrew/.linuxbrew/bin/brew" - elif [[ -x "$HOME/.linuxbrew/bin/brew" ]]; then - BREW_LOCATION="$HOME/.linuxbrew/bin/brew" - else - return - fi - - # Only add Homebrew installation to PATH, MANPATH, and INFOPATH if brew is - # not already on the path, to prevent duplicate entries. This aligns with - # the behavior of the brew installer.sh post-install steps. - eval "$("$BREW_LOCATION" shellenv)" - unset BREW_LOCATION -fi - -if [[ -z "$HOMEBREW_PREFIX" ]]; then - # Maintain compatability with potential custom user profiles, where we had - # previously relied on always sourcing shellenv. OMZ plugins should not rely - # on this to be defined due to out of order processing. - export HOMEBREW_PREFIX="$(brew --prefix)" -fi - -alias bcubc='brew upgrade --cask && brew cleanup' -alias bcubo='brew update && brew outdated --cask' -alias brewp='brew pin' -alias brewsp='brew list --pinned' -alias bubc='brew upgrade && brew cleanup' -alias bubo='brew update && brew outdated' -alias bubu='bubo && bubc' -alias buf='brew upgrade --formula' - -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}" -}