mirror of
https://github.com/Monadical-SAS/cubbi.git
synced 2025-12-20 04:09:06 +00:00
feat: make opencode beautiful by default (#24)
opencode: try having compatible default theme
This commit is contained in:
@@ -67,6 +67,7 @@ RUN echo '[ -x /cubbi/init-status.sh ] && /cubbi/init-status.sh' >> /etc/bash.ba
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
ENV PYTHONDONTWRITEBYTECODE=1
|
||||
ENV UV_LINK_MODE=copy
|
||||
ENV COLORTERM=truecolor
|
||||
|
||||
# Pre-install the cubbi_init
|
||||
RUN /cubbi/cubbi_init.py --help
|
||||
|
||||
@@ -182,6 +182,9 @@ class OpencodePlugin(ToolPlugin):
|
||||
else:
|
||||
config_data = {}
|
||||
|
||||
# Set default theme to system
|
||||
config_data.setdefault("theme", "system")
|
||||
|
||||
# Update with environment variables
|
||||
opencode_model = os.environ.get("CUBBI_MODEL")
|
||||
opencode_provider = os.environ.get("CUBBI_PROVIDER")
|
||||
|
||||
Reference in New Issue
Block a user