commit b2adcc19caf2c96e3b7e4c7c6d818d93327c0230
parent ed8e3331006636de0d061d54fa190d37bbf9a49a
Author: Chris Bracken <chris@bracken.jp>
Date: Sun, 5 Jul 2026 09:29:13 +0900
zsh: move homebrew to default installation path
Diffstat:
3 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/.config/zsh/.zlogin b/.config/zsh/.zlogin
@@ -12,7 +12,7 @@ if [ -x "/usr/games/fortune" ]; then
elif [ -x "/opt/local/bin/fortune" ]; then
/opt/local/bin/fortune
echo
-elif [ -x "$HOME/.homebrew/bin/fortune" ]; then
- "$HOME/.homebrew/bin/fortune"
+elif [ -x "/opt/homebrew/bin/fortune" ]; then
+ "/opt/homebrew/bin/fortune"
echo
fi
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc
@@ -18,8 +18,8 @@ bindkey '^Y' push-line
bindkey '^R' history-incremental-search-backward
# Add zsh completion definition dirs.
-if [ -d "$HOME/.homebrew/share/zsh/site-functions" ]; then
- fpath=("$HOME/.homebrew/share/zsh/site-functions" "${fpath[@]}")
+if [ -d "/opt/homebrew/share/zsh/site-functions" ]; then
+ fpath=("/opt/homebrew/share/zsh/site-functions" "${fpath[@]}")
fi
fpath=("$HOME/.local/zsh/site-functions" "$ZDOTDIR/site-functions" "${fpath[@]}")
diff --git a/.config/zsh/paths b/.config/zsh/paths
@@ -42,7 +42,7 @@ path_prepend "$SRC_ROOT/flutter/flutter/engine/src/flutter/bin"
# Homebrew
if [[ "$(uname)" == "Darwin" ]]; then
- path_prepend "$HOME/.homebrew/bin"
+ path_prepend "/opt/homebrew/bin"
fi
# Ruby gems
@@ -58,10 +58,6 @@ fi
# Rust packages
path_prepend "$HOME/.cargo/bin"
-# Work: Node.js (why... just why...)
-[ -s "$HOME/.homebrew/opt/nvm/nvm.sh" ] && \. "$HOME/.homebrew/opt/nvm/nvm.sh"
-[ -s "$HOME/.homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "$HOME/.homebrew/opt/nvm/etc/bash_completion.d/nvm"
-
# Personal bin directory
path_prepend "$HOME/.local/bin"
path_prepend "$HOME/bin"