Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting of color scheme names on macOS #468

Open
ashikase opened this issue Sep 26, 2024 · 0 comments
Open

Formatting of color scheme names on macOS #468

ashikase opened this issue Sep 26, 2024 · 0 comments

Comments

@ashikase
Copy link

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;'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant