Add Gnome Terminal support to colors script

This commit is contained in:
ViViDboarder 2021-07-25 18:16:11 -07:00
parent 5401bd67c6
commit 2fb5734718

View File

@ -71,6 +71,9 @@ def get_terminal_profile(force=False):
raise ValueError("Using iTerm but no profile found") raise ValueError("Using iTerm but no profile found")
elif term_program == "Alacritty": elif term_program == "Alacritty":
return "Alacritty" return "Alacritty"
else:
if os.environ.get("GNOME_TERMINAL_SCREEN") is not None:
return "Gnome Terminal"
# If we got this far, we don't know what to do # If we got this far, we don't know what to do
raise ValueError(f"Unknown terminal {term_program}") raise ValueError(f"Unknown terminal {term_program}")