New line in Claude Code in Alacritty

til
claude-code
Author
Affiliation
Published

October 18, 2025

Modified

October 18, 2025

To make Shift+Enter create a new line in Claude Code when working with Alacritty/Zellij, you need to add the following lines to ~/.config/alacritty.toml:

[keyboard]
bindings = [
    { key = "Return", mods = "Shift", chars = "\n" } 
]

I found the solution in this GitHub issue.

Running /terminal-setup didn’t work for me.

Citation

BibTeX citation:
@online{castillo2025,
  author = {Castillo, Dylan},
  title = {New Line in {Claude} {Code} in {Alacritty}},
  date = {2025-10-18},
  url = {https://dylancastillo.co/til/fix-claude-code-shift-enter-alacritty.html},
  langid = {en}
}
For attribution, please cite this work as:
Castillo, Dylan. 2025. “New Line in Claude Code in Alacritty.” October 18, 2025. https://dylancastillo.co/til/fix-claude-code-shift-enter-alacritty.html.