Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[FEATURE] Support custom wrapper commands (like shell functions/aliases) for terminal_cmd

オープン
#135 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
bash, lua, neovim, shell
領域
cli, devtools

調査の方向性

プラグインの terminal_cmd の処理から始め、例の cl シェル関数を使って報告された終了コード 127 を再現します。現在のコマンド実行が PATH の実行可能ファイルをどのように扱っているかを確認し、その後、サポート対象のラッパー関数またはエイリアスが、直接の実行可能コマンドにリグレッションを起こさずに動作することを検証します。

索引モデルが issue の本文から書いたものです。

説明

Feature Description

Support for using custom wrapper commands (e.g. shell functions or aliases) as terminal_cmd in claudecode.nvim.
Currently, terminal_cmd only works with executables available in the shell PATH. When using a shell function (e.g. cl), it fails with exit code 127.

Use Case

I created a custom shell function cl that wraps claude with additional custom prompts.
I’d like to use this wrapper command with claudecode.nvim so that every request automatically follows my predefined prompt rules.
This would make it easier for users to customize their workflows without modifying the plugin code.

Proposed Solution

Allow terminal_cmd to support shell functions or aliases in addition to executables.
For example, running the command through a shell (e.g. bash -i -c "cl") so that user-defined functions are available.

Alternatives Considered

  • Directly using the claude binary instead of the wrapper (works, but loses my custom prompt logic).
  • Writing a separate executable script (~/bin/cl) instead of a shell function (possible, but less convenient for quick customization).

Additional Context

Error message when attempting to use a shell function as terminal_cmd:

[ClaudeCode] [terminal] [ERROR] Claude exited with code 127.
Check for any errors.

Example config:

{
  "coder/claudecode.nvim",
  dependencies = { "folke/snacks.nvim" },
  opts = {
    terminal_cmd = "cl",
    terminal = {
      snacks_win_opts = {
        ...
      },
    },
  },
}

主要言語
Lua
スター
3.1k
フォーク
217
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

coder/claudecode.nvim のほかの issue

coder/claudecode.nvim の issue をすべて見る

似ている issue

Lua の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。