Skip to content

Instantly share code, notes, and snippets.

@jftuga
jftuga / Getting Shift+Enter to Work in Claude Code with iTerm2 and tmux.md
Last active June 12, 2026 06:03
Getting Shift+Enter to Work in Claude Code with iTerm2 and tmux

Getting Shift+Enter to Work in Claude Code with iTerm2 and tmux

Shift+Enter in Claude Code inserts a newline without submitting your prompt—essential for writing multi-line code or complex queries. However, getting this key combination to work reliably through a terminal stack involving iTerm2 and tmux requires configuration at multiple layers.

This guide explains both the fix and the reasoning behind it.

Quick Start

If you just want it working, here's what you need:

@mingderwang
mingderwang / gist:a78dbda045a63f6e8d43b5fb74f2274a
Created February 11, 2020 04:15
Error saving credentials: error storing credentials - err: exit status 1, out: `Cannot autolaunch D-Bus without X11 $DISPLAY` (when you try to docker login but fail)
//solution
sudo apt install gnupg2 pass
@maxivak
maxivak / readme.md
Last active March 22, 2023 12:03
Chef. How to run scripts (recipes)

Run Chef scripts locally

There are several options to run recipes:

  • using chef-client with -z option
  • using chef-apply
  • using chef-solo

Before running Chef recipes on the machine, it should be prepared: