Hacker News new | ask | show | jobs
by dbbolton 4616 days ago
They should really mention which shell and terminal emulator they are using. Not everyone is using the same "Unix command line".
1 comments

Fair point. FWIW, we're all on OS X, running bash, zsh, or fish on either Terminal.app or iTerm2.
Control-Left and Right switch workspaces for me. A giant pain in the ass, because the normal word-jump shortcut, Option-Left/Right, just drops a [C/[D into the shell on iTerm. The stupid thing is, if I shell into an Ubuntu machine, it works fine.
You can probably set that up in .inputrc. Pressing Ctrl-V in a terminal before pressing your ctrl+left or ctrl+right arrow will type the initial escape character literally so you can see what the key sequence is (e.g. something like \e[1;5D).

Alternatively, you could change your workspace bindings to Control+[some other modifier].