Altkey may need to beEscon macOS depending on your terminal settings.
| Shortcut | Action |
|---|---|
Ctrl+A |
Move to beginning of line |
Ctrl+E |
Move to end of line |
Ctrl+F |
Move forward one character |
Ctrl+B |
Move backward one character |
Alt+F |
Move forward one word |
Alt+B |
Move backward one word |
| Shortcut | Action |
|---|---|
Ctrl+D |
Delete character under cursor |
Backspace |
Delete character before cursor |
Ctrl+H |
Same as Backspace |
Alt+D |
Delete word forward |
Ctrl+W |
Delete word backward |
Ctrl+K |
Delete from cursor to end of line |
Ctrl+U |
Delete from cursor to beginning of line |
Ctrl+Y |
Paste (yank) last deleted text |
| Shortcut | Action |
|---|---|
Ctrl+P / ↑ |
Previous command |
Ctrl+N / ↓ |
Next command |
Ctrl+R |
Reverse search history |
Ctrl+G |
Cancel history search |
!! |
Repeat last command |
!$ |
Last argument of previous command |
| Shortcut | Action |
|---|---|
Ctrl+C |
Kill current process |
Ctrl+Z |
Suspend current process |
Ctrl+L |
Clear screen |
Ctrl+D |
Exit shell (on empty line) |
| Shortcut | Action |
|---|---|
Tab |
Autocomplete |
Tab Tab |
Show all completions |
Ctrl+XX |
Toggle between current pos and line start |
Alt+. |
Insert last argument of previous command |