From 19b887667a155befeb5850f0af46a45cc5311ae2 Mon Sep 17 00:00:00 2001 From: Andy Richardson Date: Sun, 4 Dec 2022 13:17:26 +0000 Subject: [PATCH] Use brew to determine prefix https://docs.brew.sh/FAQ#why-should-i-install-homebrew-in-the-default-location --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2f389d6..5667cec 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Install Using the [Homebrew]( https://brew.sh ) package manager: brew install zsh-history-substring-search - echo 'source /usr/local/share/zsh-history-substring-search/zsh-history-substring-search.zsh' >> ~/.zshrc + echo 'source $(brew --prefix)/share/zsh-history-substring-search/zsh-history-substring-search.zsh' >> ~/.zshrc Using [Oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh):