open settings with ⌘ + , and search for terminal.integrated.copyOnSelection. enable. enjoy.
use [brew]
Open settings with ⌘ + , under profiles select default profile and change command to custom shell:
/usr/local/bin/pwsh
⌥ + ← and ⌥ + →In iTerm2 go to Preferences > Profile > Keys > Key mappings.
Find the shortcut for ⌥ + ← and update with the following settings:
Find the shortcut for ⌥ + → and update with the following settings:
Add a new shortcut for ⌥ + backspace with the following settings:
0x17