Gogh
Gogh copied to clipboard
Formatting of color scheme names on macOS
On macOS, the names of the available color schemes are not properly formatted, as seen in this screenshot:
The problem is that the following line does not work with the BSD version of sed that comes with macOS:
https://github.com/Gogh-Co/Gogh/blob/47961a839af44f2ca5708fdb86581fd867382f4f/gogh.sh#L520
I ended up replacing the line with a version using perl, though there is probably a better solution:
perl -pe 's/\.\S*//g;' -e 's/-/ /g;' -e 's/\b\w\w/\u$&/g;'