Allow terminal programs to access the clipboard
- Preferences -> General -> Selection
- Enable (check) the following:
- Copy to pasteboard on selection
- Applications in terminal may access clipboard
- File -> Preferences -> Profiles -> Terminal
- Check "Unlimited scrollback"
- System Preferences (macOS) > Keyboard > Shortcuts > App Shortcuts
- Click "+" to add a new shortcut
- In "Application", select: iTerm.app
- In "Menu Title", enter: Close
- In "Keyboard Shortcut", type: ⌘ Control w
Prompt to close iterm2 if a process is running:
- iterm.app > Preferences > Profile > Session
- In the "Prompt before closing?" option, select: If there are jobs besides