2 ms·
This is for teletypewriters. For those of us with interactive electronic video displays, we can use up-arrow to recall the last command or Ctrl-R to search hist
by inigyou 3mo ago
This is for teletypewriters. For those of us with interactive electronic video displays, we can use up-arrow to recall the last command or Ctrl-R to search history, then edit the recalled command.
- pcblues 3mo agoI appreciate the true snark of this :)
- amiga386 3mo agoAnd for editing that command line... I know a lot of people who know about Ctrl-a, Ctrl-e, Ctrl-k, but still hold down the left arrow key or delete key a lot to edit things in the middle. Those people want to use: Alt-f move cursor forward one word Alt-b move cursor back one word Alt-d delete to the end of the next word Alt-Del delete backwards to the start of the previous word Ctrl-_ undo Here's a cheatsheet: https://readline.kablamo.org/emacs.html https://readline.kablamo.org/emacs.html
- FeepingCreature 3mo agoCtrl-arrowkeys also works for word cursor movement in regular bash, and alt-backspace deletes a word.
- Fnoord 3mo agoThose people are fine just using arrows and backspace, as it isn't worth it to min-max this. I don't want to learn/use Emacs, this doesn't even work on macOS, and Ctrl+A interferes with my tmux keybind. This is why vi keybinds are nice in shells, but... defaults matter. I haven't decided yet if I want to use NFS to malware my configs, or git. I think git is more flexible, but I don't want my configs in a public git. Either way, I use atuin a lot, and before that history | fzf. Which is bound to ctrl+r for me. But again... not by default.