diff --git a/config/alacritty/alacritty.toml b/config/alacritty/alacritty.toml index be44031c..f016c07a 100644 --- a/config/alacritty/alacritty.toml +++ b/config/alacritty/alacritty.toml @@ -3,6 +3,9 @@ general.import = [ "~/.config/omarchy/current/theme/alacritty.toml" ] [env] TERM = "xterm-256color" +[terminal] +osc52 = "CopyPaste" + [font] normal = { family = "JetBrainsMono Nerd Font", style = "Regular" } bold = { family = "JetBrainsMono Nerd Font", style = "Bold" } diff --git a/migrations/1771002522.sh b/migrations/1771002522.sh new file mode 100644 index 00000000..a4550bc5 --- /dev/null +++ b/migrations/1771002522.sh @@ -0,0 +1,11 @@ +echo "Add full OSC 52 support to Alacritty" + +ALACRITTY_CONFIG=~/.config/alacritty/alacritty.toml + +if [[ -f $ALACRITTY_CONFIG ]] && ! grep -q 'osc52' "$ALACRITTY_CONFIG"; then + cat >> "$ALACRITTY_CONFIG" << 'EOF' + +[terminal] +osc52 = "CopyPaste" +EOF +fi