automotiveMastermind / numonic

The second generation prompt for macOS, Linux, and WSL
MIT License
9 stars 5 forks source link

fix(shell): theme script does not detect windows terminal #9

Open rymancl opened 2 years ago

rymancl commented 2 years ago

Commands to Reproduce

theme

Expected Results

Theme is set properly

Actual Results

Theme is not set. Adding profile manually to terminal settings.json results in an error popup.

>Found a profile with an invalid "colorScheme". Defaulting that profile to the default colors. Make sure that when setting a "colorScheme", the value matches the "name" of a color scheme in the "schemes" list.

image

Any additional logs that will help us?

Windows Terminal isn't a detected option: https://github.com/automotiveMastermind/numonic/blob/92df4d99ec8ac66edc691458fe189a411d13c627/src/sh/scripts/theme#L51-L69

Operating System(s)

Windows (WSL)

Operating System (Other)

No response

Architecture

amd64 / x86_64

Shell

bash

Terminal Program(s)

other

Terminal Program(s) (Other)

Windows Terminal (wsl)

What is the output from uname -srv on the system(s) where the bug is occurring?

Linux 4.19.104-microsoft-standard #1 SMP Wed Feb 19 06:37:35 UTC 2020

Code of Conduct