diff --git a/paper b/paper index 7f5820c722..d453a6f8e6 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}}"