文档: 补充 DevContainer 详细用法并移除 runoc.sh
CI / lint (push) Successful in 6s

This commit is contained in:
2026-04-19 23:32:19 +08:00
parent 66f9acaf7c
commit f91fdbfec8
5 changed files with 111 additions and 113 deletions
-20
View File
@@ -63,21 +63,6 @@ alias cc5='cc 5'
alias cc5t='cc 5t'
alias cc51='cc 51'
# OpenCode 启动函数(参数透传至 runoc.sh)
oc() { {{BIN_PATH}}/runoc.sh "$@"; }
# 模型快捷方式: oc51, oc 51 ...
alias oc45='oc 45'
alias oc45a='oc 45a'
alias oc45f='oc 45f'
alias oc46='oc 46'
alias oc46v='oc 46v'
alias oc46vf='oc 46vf'
alias oc47='oc 47'
alias oc5='oc 5'
alias oc5t='oc 5t'
alias oc51='oc 51'
# tmux pane 级模型继承:从 pane option 读取模型配置(由 runcc.sh 写入)
# 覆盖 session 级环境变量,实现同 session 不同 pane 的模型隔离
if [ -n "${TMUX:-}" ]; then
@@ -89,11 +74,6 @@ if [ -n "${TMUX:-}" ]; then
fi
unset _model
_oc_model="$(tmux show-option -pv @opencode_model 2>/dev/null || true)"
if [ -n "$_oc_model" ]; then
export OPENCODE_MODEL="$_oc_model"
fi
unset _oc_model
fi
# Docker 组提示(仅在需要时显示)