From 1b70427dfc4ae6f59ad64e7a5d4434a85a3e3f1e Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Fri, 17 Mar 2017 23:37:16 +0000 Subject: [PATCH] fix shell match to account for /usr/local for homebrew installs of zsh on macOS --- paper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper b/paper index 7f5820c72..d453a6f8e 100755 --- a/paper +++ b/paper @@ -1,7 +1,7 @@ #!/usr/bin/env bash # resolve shell-specifics -case "$(echo "$SHELL" | sed 's|/usr||g')" in +case "$(echo "$SHELL" | sed -E 's|/usr(/local)?||g')" in "/bin/zsh") RCPATH="$HOME/.zshrc" SOURCE="${BASH_SOURCE[0]:-${(%):-%N}}"