Terminal-Keys-and-Commands-Reference
Terminal-Keys-and-Commands-Reference
Navigating the Prompt esc, then . (dot) inserts last argument of previous command
left ←/right → arrow move the cursor left/right Marks and Bookmarks
⌥←, ⌥→ move left/right by word ⌘ up ↑/down ↓ scroll to previous/next mark
ctrl-A move to beginning of line ⌘L clear to previous mark
ctrl-E move to end of line ⌘⌥ L clear to previous bookmark
ctrl-XX (twice) toggle between beginning of line ⌘U set mark manually
and current position ⌘⌥ U set bookmark
ctrl-U clear line left of cursor to the beginning ⌘⌥ up ↑/down ↓ scroll to previous/next bookmark
ctrl-K clear line right of cursor to the end ⌘⇧ ↩︎ send return without marking
ctrl-W delete word left of cursor ⌘ ↩︎ send return with marking
⌥ click move cursor to click (when automatic marking is disabled)