mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-11-22 11:26:29 +00:00
Detect default terminal colors for mac term
This commit is contained in:
parent
8da9beac09
commit
fe1a146c84
@ -53,7 +53,6 @@ def get_terminal_profile(force=False):
|
|||||||
)
|
)
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
|
|
||||||
term_program = os.environ.get("TERM_PROGRAM")
|
term_program = os.environ.get("TERM_PROGRAM")
|
||||||
if term_program == "Apple_Terminal":
|
if term_program == "Apple_Terminal":
|
||||||
tty = check_output(["tty"]).strip()
|
tty = check_output(["tty"]).strip()
|
||||||
@ -94,6 +93,8 @@ def get_vim_colorscheme(terminal_profile: str, force_dark=False, force=False):
|
|||||||
return "morning"
|
return "morning"
|
||||||
elif "Yosemite Dark" == terminal_profile:
|
elif "Yosemite Dark" == terminal_profile:
|
||||||
return "vividchalk"
|
return "vividchalk"
|
||||||
|
elif "Basic" == terminal_profile:
|
||||||
|
return "default"
|
||||||
|
|
||||||
# Default
|
# Default
|
||||||
return "wombat256mod"
|
return "wombat256mod"
|
||||||
|
Loading…
Reference in New Issue
Block a user