Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mietzen/xbar-homebrew-update-plugin
This xbar plugin let's you update formulae and casks.
https://github.com/mietzen/xbar-homebrew-update-plugin
brew cask homebrew updater xbar xbar-plugin
Last synced: 22 days ago
JSON representation
This xbar plugin let's you update formulae and casks.
- Host: GitHub
- URL: https://github.com/mietzen/xbar-homebrew-update-plugin
- Owner: mietzen
- License: mit
- Created: 2023-04-28T15:00:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-01T12:04:15.000Z (about 2 months ago)
- Last Synced: 2024-10-04T21:43:27.838Z (about 1 month ago)
- Topics: brew, cask, homebrew, updater, xbar, xbar-plugin
- Language: Shell
- Homepage:
- Size: 1.3 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# xbar Homebrew Update
This [xbar](https://github.com/matryer/xbar) plugin let's you update `formulae` and `casks`.
## Install
Download and install the plugin:
```shell
mkdir "~/Library/Application Support/xbar/plugins/homebrew-update"
wget -qO- https://github.com/mietzen/xbar-homebrew-update-plugin/archive/refs/heads/main.tar.gz | tar xvz -C "~/Library/Application Support/xbar/plugins/homebrew-update" --strip-components=1
ln -s "~/Library/Application Support/xbar/plugins/homebrew-update/homebrew-update.1h.sh" "~/Library/Application Support/xbar/plugins/homebrew-update.1h.sh"
```### Working with "sudo" casks
To make this work with `casks` that need `root` access to be installed, the easiest way is to enable `sudo` via touch-id:
```shell
cat << 'EOF' >> ~/.zshrc# Enable touch-id for sudo
enable-sudo-touch-id() {
if ! grep -c pam_tid.so /etc/pam.d/sudo &> /dev/null; then
echo "Enable sudo via Touch ID"
sudo cp /etc/pam.d/sudo /etc/pam.d/sudo.bak
awk -v text="auth sufficient pam_tid.so" '!/^#/ && !p {print text; p=1} 1' /etc/pam.d/sudo | sudo tee /etc/pam.d/sudo &> /dev/null
fi
}
enable-sudo-touch-idEOF
exec zsh
enable-sudo-touch-id
```## Usage
![Menu Demo](assets/menu.png)
If you click on a `formula` or `cask` a Terminal opens to upgrade the specific `formula` or `cask`. You can also click on `Upgrade All` to update all listed `formulae` and `casks`.