]> arthur.barton.de Git - ax-zsh.git/commit
homebrew: Add a wrapper function for the brew(1) command
authorAlexander Barton <alex@barton.de>
Sat, 27 Aug 2022 15:41:11 +0000 (17:41 +0200)
committerAlexander Barton <alex@barton.de>
Sat, 27 Aug 2022 15:41:11 +0000 (17:41 +0200)
commitc27ca78de69ac396d35492a8f518ed352511b5ce
tree1e233293d8e8c445b5534ae2bdcda12098bb1cc8
parentbc9371e99ed7cf81da8c5a2b874e908e3b591e32
homebrew: Add a wrapper function for the brew(1) command

This wrapper function for the `brew`(1) command does the following:

- Detect the location of the "real" brew(1) command.
- Change user and group when the Homebrew installation is owned by a different
  user (to preserve sane file permissions).
- Set a relaxed umask(1) so that other users can use software installed by
  Homebrew.
- Call the "real" `brew`(1) command.
plugins/homebrew/README.md
plugins/homebrew/homebrew.zprofile
plugins/homebrew/homebrew.zshrc [new file with mode: 0644]