6 ms·
X E is still a terribly slow sequence to type.
by userbinator 2mo ago
X E is still a terribly slow sequence to type.
- db48x 2mo agoNot that slow; maybe you just need practice. Alternatively just bind it to whatever key you prefer by editing your `~/.inputrc`. Add a line like this to it: "\C-e": edit-and-execute-command and you will only have to type control-e to edit the current command. Don’t forget that `bind -P` will list all the current key bindings. It’s rarer, but you might also have some keys bound not to internal commands but to strings or external commands. You can list those with `bind -S` and `bind -X` respectively. Also, don’t forget that lots of other things use readline too. You can use the same key bindings in many interactive environments, such as your favorite programming language’s REPL, your SQL prompt, calculators like bc or units, your favorite debugger, etc. If you come across a command environment that doesn’t use readline directly you can run it with rlwrap to remedy that. The more you use them the more places you will find where they are useful, and the more utility you will get out of them.