mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
8 lines
438 B
Bash
8 lines
438 B
Bash
echo "Add Shift+Return keyboard binding for multi-line as used by Claude Code to Alacritty"
|
|
|
|
ALACRITTY_CONFIG=~/.config/alacritty/alacritty.toml
|
|
|
|
if [[ -f $ALACRITTY_CONFIG ]] && ! grep -q 'key = "Return"' "$ALACRITTY_CONFIG"; then
|
|
sed -i 's/{ key = "Insert", mods = "Control", action = "Copy" }/{ key = "Insert", mods = "Control", action = "Copy" },\n { key = "Return", mods = "Shift", chars = "\\u001B\\r" }/' "$ALACRITTY_CONFIG"
|
|
fi
|