fix shell match to account for /usr/local for homebrew installs of zsh on macOS

This commit is contained in:
Shane Freeder 2017-03-17 23:37:16 +00:00
parent fb0f8ba518
commit 1b70427dfc
No known key found for this signature in database
GPG Key ID: A3F61EA5A085289C
1 changed files with 1 additions and 1 deletions

2
paper
View File

@ -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}}"