[BUG] Failed to install Ghostty Shift+Enter key binding
Resolved 💬 3 comments Opened Aug 22, 2025 by jpmcb Closed Aug 26, 2025
Environment
- Platform: [x] Anthropic API
- Claude CLI version: <!-- output of
claude --version-->
❯ claude --version
1.0.88 (Claude Code)
- Operating System: MacOS 15.6
- Terminal: Ghostty 1.1.3
Bug Description
On Ghostty, the /terminal-setup command crashes with a unresolved promise Failed to install Ghostty Shift+Enter key binding:
❯ claude
╭───────────────────────────────────────────────────╮
│ ✻ Welcome to Claude Code! │
│ │
│ /help for help, /status for your current setup │
│ │
│ cwd: /Users/jpmcb/.config/nvim │
╰───────────────────────────────────────────────────╯
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ > │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
? for shortcuts
file:///Users/jpmcb/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:826
`,T1().writeFileSync(G,W,{encoding:"utf-8",flush:!1}),`${AQ("success",A)("Installed Ghostty Shift+Enter key binding")}${UG}${AQ("success",A)("You may need to restart Ghostty for changes to take effect")}${UG}${Z0.dim(`See ${G}`)}${UG}`}catch(Y){throw N1(Y instanceof Error?Y:new Error(String(Y))),new Error("Failed to install Ghostty Shift+Enter key binding")}}async function k06(A){let B=ER1();try{if(!await jT2())throw new Error("Failed to create backup of iTerm2 preferences, bailing out");let{code:Z}=await Z2("defaults",["write","com.googlecode.iterm2","GlobalKeyMap","-dict-add","0xd-0x20000-0x24",`<dict>
^
Error: Failed to install Ghostty Shift+Enter key binding
at j06 (file:///Users/jpmcb/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:826:298)
at LY0 (file:///Users/jpmcb/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:821:11990)
at Object.call (file:///Users/jpmcb/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:821:11484)
at file:///Users/jpmcb/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3064:353
at new Promise (<anonymous>)
at Jq5 (file:///Users/jpmcb/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3064:333)
at Yq5 (file:///Users/jpmcb/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3058:3840)
at Zq5 (file:///Users/jpmcb/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3058:1615)
at P01 (file:///Users/jpmcb/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3058:5366)
at file:///Users/jpmcb/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3427:30089
Node.js v22.14.0
Steps to Reproduce
- Use Ghostty
- Initiate
claudeand run/terminal-setup - See error
I get this every time I try to run that command.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗