Gogh-Co/Gogh

Formatting of color scheme names on macOS

Opened this issue · 0 comments

On macOS, the names of the available color schemes are not properly formatted, as seen in this screenshot:

image

The problem is that the following line does not work with the BSD version of sed that comes with macOS:

Gogh/gogh.sh

Line 520 in 47961a8

done | sed -e 's/\.\S*//g' -e 's/-/ /g' -e 's/\<\w\w/\u&/g' # Remove .sh, replace - with space, and capitalize

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;'