C:/Program Files/Git/terminal-setup fails on Windows Terminal despite listing it as supported

Resolved 💬 2 comments Opened Feb 26, 2026 by AAAAAThatsSixAs Closed Mar 26, 2026

Bug Description

/terminal-setup refuses to run in Windows Terminal, even though the help text explicitly lists it as a supported terminal.

Steps to Reproduce

  1. Open Windows Terminal (any shell — cmd, PowerShell, bash)
  2. Run claude
  3. Type /terminal-setup

Expected Behavior

The command should configure the Shift+Enter keybinding for Windows Terminal.

Actual Behavior

The command correctly detects the terminal as windows-terminal but then displays:

Terminal setup cannot be run from windows-terminal.

This command configures a convenient Shift+Enter shortcut for multi-line prompts.
Note: You can already use backslash (\) + return to add newlines.

To set up the shortcut (optional):
1. Exit tmux/screen temporarily
2. Run /terminal-setup directly in one of these terminals:
   • Windows: Windows Terminal
   • IDE: VSCode, Cursor, Windsurf, Zed
   • Other: Alacritty
3. Return to tmux/screen - settings will persist

Note the contradiction: the error says it "cannot be run from windows-terminal" while the help text says to "run /terminal-setup directly in Windows Terminal."

Workaround

Manually add the following to the Windows Terminal settings.json:

Action:

{
    "command": {
        "action": "sendInput",
        "input": "\^[[13;2u"
    },
    "id": "User.sendInput.shiftEnter"
}

Keybinding:

{
    "id": "User.sendInput.shiftEnter",
    "keys": "shift+enter"
}

Environment

  • OS: Windows 11 Home 10.0.26200
  • Terminal: Windows Terminal
  • Claude Code model: claude-opus-4-6

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗