跳到主要内容
    ↑↓ 选择↵ 打开esc 关闭
    Pettecco

    Quotes Tui

    opencode-quotes-tui·v1.0.0·界面与主题

    OpenCode TUI plugin that replaces the home screen tips with a random quote

    GitHub 星标

    7

    近 30 天 +6

    月装机量

    28

    近 7 天 28

    综合评分

    42.0

    生态多维模型

    最近提交

    3 天前

    2026-10-02

    快速安装与配置

    opencode.json

    写入当前项目的 opencode.json,只对这个仓库生效。

    opencode.json

    {
      "$schema": "https://opencode.ai/config.json",
      "plugin": ["opencode-quotes-tui@1.0.0"]
    }

    OpenCode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。

    CI npm version

    Open your terminal to a piece of timeless wisdom. opencode-quotes-tui replaces OpenCode's built-in tips with a hand-picked quote. You get a new one every time you start OpenCode.

    OpenCode TUI home screen with a random quote in the footer

    Why you'll like it

    • A fresh quote every session: philosophy, literature, science, art. A hand-curated list instead of a wall of tips.
    • Matches your theme: renders in your current OpenCode theme's colors, with nothing to configure.
    • One command to install: works out of the box, globally, in every project.

    Install

    opencode plugin opencode-quotes-tui -g
    

    Restart OpenCode. That's it. Every session from now on opens with a quote.

    Alternative install routes

    In-app Plugin Manager: command palette → Plugins → install → type opencode-quotes-tui → press Tab to select global scope.

    Manual config: add the package to the plugin list in ~/.config/opencode/tui.json and OpenCode downloads it automatically:

    {
      "$schema": "https://opencode.ai/tui.json",
      "plugin": ["opencode-quotes-tui"]
    }
    

    Use "opencode-quotes-tui@1.0.0" to pin a version.

    Single project only: copy src/tui.tsx, src/quotes.ts and tui.json from this repo into your project root and OpenCode picks them up automatically.

    Uninstall

    Remove opencode-quotes-tui from the plugin list in ~/.config/opencode/tui.json and restart OpenCode.

    One honest note: while active, the plugin hides OpenCode's built-in tips, which is the point. That preference outlives the plugin, so if you want the tips back afterwards, run the built-in tips.toggle command once.

    Make it yours

    The quote list is a plain file: src/quotes.ts, an array of { quote, author }. Fork it, edit it, rebuild with npm run build. An empty list is fine too. The plugin simply steps aside.

    Contributing a quote

    Pull requests with new quotes are welcome:

    • Verifiable attribution: cite the source or work in the PR; misattributed quotes are declined.
    • Terminal-friendly: around 200 characters max.
    • Any language: English and Portuguese today, more welcome.
    • Fit the shelf: keep the section organization of src/quotes.ts.

    Compatibility

    OpenCode 1.18 or newer.

    Development
    npm install
    npm run typecheck
    npm run build
    

    Plain Node 22 + npm, no extra runtime needed.

    License

    MIT

    同类生态推荐