최재영의 개발 일지
GitHubLinkedIn

터미널에서 Shift+Enter로 줄바꿈하기

기타1분 읽기

터미널에서 클로드 코드로 작업하는데, 보기 좋게 프롬프트에 줄바꿈을 많이 사용한다. 줄바꿈은 터미널 기본값으로 대게 Option+Enter를 사용하는 것 같다.(alacritty, ghostty)

Alacritty

# alacritty/alacritty.toml
[keyboard]
bindings = [
  { key = "Return", mods = "Shift", chars = "\n" },
]

Ghostty

# ghostty/config
keybind = shift+enter=text:\n