Terminal & Shell
1. Cursor Movement
- Ctrl + a: Jump to the beginning of the line.
- Ctrl + e: Jump to the end of the line.
- Alt + f: Move forward one word.
- Alt + b: Move backward one word.
- Ctrl + xx: Toggle cursor between start and current position.
2. Editing & Deleting
- Ctrl + w: Delete the word before the cursor.
- Alt + d: Delete the word after the cursor.
- Ctrl + u: Delete from cursor to beginning of line.
- Ctrl + k: Delete from cursor to end of line.
- Ctrl + y: Yank (paste) the last deleted text.
- Ctrl + _: Undo your last edit.
3. Command History
- Ctrl + r: Search command history (triggers Atuin if installed).
- Alt + .: Insert the last argument of the previous command.
- !!: Execute the entire last command again (e.g.,
sudo !!). - !$: Execute only the last argument of the previous command.
4. Screen Control
- Ctrl + l: Clear the screen.
- Ctrl + + / -: Zoom in or out (Ghostty native).
- Ctrl + 0: Reset zoom level.