MacOS customization tips & tricks

Keyboard

OutcomeChange to make
Map Caps Lock to ControlSystem Settings > Keyboard > Keyboard Shortcuts > Modifier Keys > Choose "Control" from the dropdown next to Caps Lock.
Make function keys act as function keys, not controlling featuresSystem Settings > Keyboard > Keyboard Shortcuts > Function Keys > Use F1, F2, etc. keys as standard function keys

Terminal

OutcomeChange to make
To make Option = AltTerminal > Settings > Profiles > Basic (or whatever your Default is) > Keyboard tab > Use Option as Meta key
To make Shift + Up Arrow be recognized (which allows for easy highlighting)1. Terminal > Settings > Profiles > Basic (or whatever your Default is) > Keyboard tab > Choose + to add an option.
2. Choose Key = Cursor Up, Modifier = Shift, and leave Action = Send Text:
3. Now the tricky part. In the empty text box, type Ctrl+[ (which will write \033 to the text box), then [1;2A as regular keystrokes, resulting in final text of \033[1;2A in the text box. Not that this text box won't let you delete characters or change them without using the "Delete one character" button, so enter carefully.
To make Shift + Down Arrow be recognized in Terminal (which allows for easy highlighting)1. Terminal > Settings > Profiles > Basic (or whatever your Default is) > Keyboard tab > Choose + to add an option.
2. Choose Key = Cursor Down, Modifier = Shift, and leave Action = Send Text:
3. Now the tricky part. In the empty text box, type Ctrl+[ (which will write \033 to the text box), then [1;2B as regular keystrokes, resulting in final text of \033[1;2B in the text box. Not that this text box won't let you delete characters or change them without using the "Delete one character" button, so enter carefully.
Mouse Scroll wheel no longer spews garbage characters into the Terminal appType "reset" command. This is usually the result of dumping binary output into the terminal.
To make locale work correctly in TerminalBasic > Profiles > Advanced > Set locale environment variables on startup
Ensure the computer doesn't completely sleep while running a long-running command line optionAdd caffeinate as a prefix to the command-line invocation


Note: all of the above assumes MacOS Ventura 13.3.1
Apple Keyboard Shortcuts