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 9e682ed074
commit e71f0a9776

2
paper
View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# resolve shell-specifics # resolve shell-specifics
case "$(echo "$SHELL" | sed 's|/usr||g')" in case "$(echo "$SHELL" | sed -E 's|/usr(/local)?||g')" in
"/bin/zsh") "/bin/zsh")
RCPATH="$HOME/.zshrc" RCPATH="$HOME/.zshrc"
SOURCE="${BASH_SOURCE[0]:-${(%):-%N}}" SOURCE="${BASH_SOURCE[0]:-${(%):-%N}}"