github / github/copilot-cli

Configure custom aliases

未關閉
#3,844 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
area:configuration
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

### Describe the feature or problem you'd like to solve

Allow to create aliases and custom /commands

### Proposed solution

Let users define their own slash command aliases, mapped to specific models and prompts.
Why it helps:
- Faster model switching, less typing
- Consistent workflows across tasks
- Feels natural, like shell or git aliase

### Example prompts or workflows

For example, modifying `~/.coppier/settings.json` to set
- `/m1` as an alias for `/model claude-opus-4.8`
- `/m2` for `/model gpt-5-mini`
- `/rd` for `/rubber-duck`
- `/docs` for "Rewrite this README clearly"

### Additional context

This fits how aliases are already used in git and the shell. Small feature, big usability win.

貢獻指南

開啟貢獻指南

研究方向

首先追蹤 ~/.coppier/settings.json 的載入方式,以及 /model 和 /rubber-duck 等現有斜線指令的分派方式。完成的標準是使用者可以在其中定義別名並呼叫它們,以選取對應的模型或執行對應的提示詞,包括 issue 中描述的範例。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
shell
領域
cli, developer-experience
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。