dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit b11492ff3ec7f0d3b006140ae45b05d66167f32d
parent 363ab2e3c855b04e47d8aab8a8be3d88d7f61ce5
Author: Chris Bracken <chris@bracken.jp>
Date:   Sun,  7 Jun 2026 08:05:50 +0900

zsh: fix homebrew dir fpath check

If we started in any dir other than my homedir, we would fail to add
completions from homebrew's site-functions dir.

Diffstat:
M.config/zsh/.zshrc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc @@ -18,7 +18,7 @@ bindkey '^Y' push-line bindkey '^R' history-incremental-search-backward # Add zsh completion definition dirs. -if [ -d ".homebrew/share/zsh/site-functions" ]; then +if [ -d "$HOME/.homebrew/share/zsh/site-functions" ]; then fpath=("$HOME/.homebrew/share/zsh/site-functions" "${fpath[@]}") fi fpath=("$HOME/.local/zsh/site-functions" "$ZDOTDIR/site-functions" "${fpath[@]}")