feat: cellar/share linking

This commit is contained in:
relikd
2025-09-10 01:30:56 +02:00
parent d39fef6d0d
commit 364f154ec2
2 changed files with 30 additions and 9 deletions

View File

@@ -15,7 +15,10 @@ Or add a new path to your `$PATH`.
In your shell config (e.g., `.zprofile` or `.bash_profile`) add
```sh
# needed to run
export BREW_PY_CELLAR=$HOME/any/path/you/like
# optional, make binary available in shell
export PATH=$PATH:$BREW_PY_CELLAR/bin
```
@@ -27,6 +30,16 @@ sudo ln -s $BREW_PY_CELLAR /opt/homebrew
```
And for auto-completion (zsh) add this to your `.zshrc`:
```sh
# shell-completion in zsh
if [ -d "$BREW_PY_CELLAR/share/zsh/site-functions" ]; then
fpath=($BREW_PY_CELLAR/share/zsh/site-functions $fpath)
fi
```
## Config
There are a few configuration options to modify brew.py behavior.