4 ms·
> shell motions between macOS and reasonable OSes All the movement commands I know work the same in the terminal on a default install of macOS as it does in th
by QuantumNomad_ 7mo ago
> shell motions between macOS and reasonable OSes
All the movement commands I know work the same in the terminal on a default install of macOS as it does in the terminal on various Linux distros I use.
Ctrl+A to go to beginning of line
Ctrl+E to go to end of line
Esc, B to jump cursor one word backwards
Esc, F to jump cursor one word forward
Ctrl+W to delete backwards until beginning of word
And so on
Both in current versions of macOS where zsh is the default shell, and in older versions of macOS where bash was the default shell.
Am I misunderstanding what you are referring to by shell motions?
- eptcyka 7mo agoYea, but ctrl + arrows to move cursor between ‘words’ don’t work, especially sad when SSH’ing in from linux. It works fine when using terminal on macOS - you just use command + arrows.
- mathfailure 7mo agoWorks fine for me. Configure your shell.
- malfist 7mo agoWhat happens when you press home or end?
- int_19h 7mo agoIn iTerm at least it goes to the beginning or end of current line.
- jorvi 7mo agoThese are emacs bindings of yore. On macOS and some Linux DEs they also work in UI text fields :)