tinted-theming / tinted-shell

Base16 and Base24 for Shells
https://github.com/tinted-theming/home
MIT License
65 stars 217 forks source link

Remove -P flag from grep call to increase compatibility. #10

Closed christophgockel closed 2 years ago

christophgockel commented 2 years ago

I struggled a bit setting up the current version of base16-shell on a new machine. After digging through it I came across the grep -P call in profile_helper.sh.

The -P flag, or --perl-regexp, is not available in the grep command that ships with macOS (tested on Monterey), so when zsh initialised it printed out some errors mentioning that -P is not supported.

The good news is that the search pattern used in this grep call doesn't contain any Perl specific elements so I thought we could remove it altogether without affecting functionality.