feat(autojump): add new Homebrew default path on M1 Macs (#9637)
On M1-Macs homebrew uses /opt/homebrew as default location for ARM
packages. This results in the autojump plugin not being able to find
autojump after a clean default installation.
This commit adds the new default location to the autojump plugin.
Diff
1diff --git a/plugins/autojump/autojump.plugin.zsh b/plugins/autojump/autojump.plugin.zsh
2index f40b0e9315aa3a25c5933a97321d85b555d251e7..3117c6da41d5b581f276699372565379da4755cd 100644
3--- a/plugins/autojump/autojump.plugin.zsh
4+++ b/plugins/autojump/autojump.plugin.zsh
5@@ -10,6 +10,7 @@ autojump_paths=(
6 /usr/local/share/autojump/autojump.zsh # FreeBSD installation
7 /opt/local/etc/profile.d/autojump.sh # macOS with MacPorts
8 /usr/local/etc/profile.d/autojump.sh # macOS with Homebrew (default)
9+ /opt/homebrew/etc/profile.d/autojump.sh # macOS with Homebrew (default on M1 macs)
10 )
1112 for file in $autojump_paths; do